![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
postgresql
stonenotes123
ddd
展开
-
postgresql 导入sql文件
psql -h localhost -d databaseName -U username -f filename原创 2013-11-08 12:51:26 · 3369 阅读 · 0 评论 -
postgresql 字段sql语句
1.更改表名 alter table 表名 rename to 新表名2.更改字段名alter table 表名 rename 字段名 to 新字段名3,更改字段类型如:ID 字段 原类型为 character varying(50) 新类型为integer其中,ID中原有数据为1,2,3等数字用如下语句更改 alter table原创 2013-11-11 17:30:33 · 8778 阅读 · 0 评论