
sql
fruitsboy
非淡薄无以明志,非寜静无以致薳。将复何及!
展开
-
SQL语句创建虚拟中介表
--利用存储过程执行创建一张虚拟表,并向表中添加数据 --下例是将一张角色表的数据copy到虚拟表中,并返回数据 IF EXISTS(SELECT 1 FROM SYSOBJECTS WHERE NAME=proc_RoleInfo_Pageing)DROP PROCEDURE proc_RoleInfo_PageingGOCREATE PROCEDURE proc_RoleI原创 2008-12-26 20:29:00 · 6326 阅读 · 0 评论 -
今日同事教的一个将sql表名和字段名同时小写的sql语句
update syscolumns set name = lower(name) where id = (select id from sysobjects where xtype='u' and name='Web_DispAssets')update sysobjects set name=lower(name) where name='Web_DispAssets'select * from sysobjects where xtype='u'原创 2010-08-26 10:04:00 · 417 阅读 · 0 评论