随笔 - 6  文章 - 0  评论 - 0  阅读 - 13532

随笔分类 -  数据库

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) 推荐(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) 推荐(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) 推荐(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) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示