-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It would be easier to create a new table w/ the new name and column name
& then copy the data from the old table, then delete the old table.
Example:
CREATE TABLE <new table> (
col1 integer,
col2 varchar(25),
col3 tinyint
)
INSERT INTO <new table> (col1, col2, col3)
SELECT col1, col2, old_col FROM <old table>
DROP TABLE <old table>
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQQRrwYechKqOuFEgEQK73gCfX/xAni9aniEcFqEvHvOwfHGnqEkAoL0m
PlIG7Ev2wG0HTvb9TUue6fzG
=3CbF
-----END PGP SIGNATURE-----
Shimon Sofer wrote:
Hello
Does anybody know how to change table name (and field name) using
SQL query ?