sqlserver 日期与字符串之间的转换
摘要:1、日期时间转字符串 Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(10
阅读全文
posted @
2020-05-14 14:33
许海松
阅读(2705)
推荐(0) 编辑
触发器
摘要:1.创建存储过程的基本语法模板: 1 if (exists (select * from sys.objects where name = 'pro_name')) 2 drop proc pro_name 3 go 4 create proc pro_name 5 @param_name para
阅读全文
posted @
2020-05-13 09:43
许海松
阅读(142)
推荐(0) 编辑
非常好的Oracle教程【转】
摘要:http://www.blogjava.net/kiant/articles/234781.html 1、SQL 简介 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighte
阅读全文
posted @
2017-03-27 17:37
许海松
阅读(295)
推荐(0) 编辑
查询数据库所有表、字段、触发器等
摘要:SQL SERVER查看所有表名:select name from sysobjects where type='U'查询表的所有字段名:Select name from syscolumns Where ID=OBJECT_ID('表名')select * from information_sch
阅读全文
posted @
2017-03-16 16:38
许海松
阅读(274)
推荐(0) 编辑