Date: 11/30/01
- Next message: Oli Wilkinson: "[PHP-DB] php.ini"
- Previous message: Riccardi Moreno: "[PHP-DB] R: [PHP-DB] PHP/Mysql"
- In reply to: Trond Erling Hundal: "[PHP-DB] How to update all the column types in a table..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I need to change a varchar into password(varchar) for a password column.
> What is the common SQL syntax to do this.
>
> The table allready has all of the password's stored. I just need to
encrypt
> them with password($value)
>
> ...Or will I have to just make a php script to extract and update?
UPDATE table SET password_column = PASSWORD('password_column');
That 'should' work for you....untested code though. Back up your table data
first =)
Sincerely,
Craig Vincent
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Oli Wilkinson: "[PHP-DB] php.ini"
- Previous message: Riccardi Moreno: "[PHP-DB] R: [PHP-DB] PHP/Mysql"
- In reply to: Trond Erling Hundal: "[PHP-DB] How to update all the column types in a table..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

