2009年9月15日

摘要: sp_rename 是一个功能丰富的存储过程,能够对 表、视图、列、存储过程、触发器、默认值、数据库、对象或规则进行重命名,并且保证不丢失数据。 下例将TB_MoneyPay_PJApply表中的字段PayMoney修改为PaidCash:EXEC sp_rename 'TB_MoneyPay_PJApply.[PayMoney]', 'PaidCash', 'COLUMN' sp_renamed... 阅读全文

posted @ 2009-09-15 10:34 Andylee 阅读(228) 评论(0) 推荐(0)

摘要: 通用式: alter table [表名] add [字段名] 字段属性 default 缺省值 default 是可选参数增加字段: alter table [表名] add 字段名 smallint default 0 增加数字字段,整型,缺省值为0 alter table [表名] add 字段名 int default 0 增加数字字段,长整型,缺省值为0alter table [表名] ... 阅读全文

posted @ 2009-09-15 10:20 Andylee 阅读(6015) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3