日常工作中常用的sql 脚本之一
摘要:use MES_WORKBECH_TD 根据菜单名找对应的winform窗体select * from SYS_BASE_RESOURCES awhere a.NAME like '装配转码%' --系统日志记录档 select * from sys_debug_log (nolock) awher
阅读全文
posted @
2020-06-28 16:47
湖东
阅读(128)
推荐(0) 编辑
sql server 常用脚本之table操作(二)
摘要:1、修改字段名: alter table 表名 rename column A to B 2、修改字段类型: alter table 表名 alter column 字段名 type not null 3、修改字段默认值 alter table 表名 add default (0) for 字段名
阅读全文
posted @
2020-06-28 07:37
湖东
阅读(202)
推荐(0) 编辑
sql server 常用脚本之table操作
摘要:use Study go if exists (select * from sysobjects where name='Student')--判断是否存在此表 drop table Student go create table Student ( id int identity(1,1) pri
阅读全文
posted @
2020-06-28 06:54
湖东
阅读(350)
推荐(0) 编辑
sql server 常用脚本之数据库操作
摘要:use master go if exists (select * from sysdatabases where name='Study') --判断Study数据库是否存在,是则删除 drop database Study go EXEC sp_configure 'show advanced
阅读全文
posted @
2020-06-27 22:54
湖东
阅读(177)
推荐(0) 编辑