SQL Server数据库实操 第六波 T-SQL
1.声明一个长度为6的字符变量 i ,并赋值”101001”,显示变量 i ;
declare @i as char(6)
set @i='101001'
select @i as '字符变量'

2.显示当前的系统时间和一年后的今天的具体时间;
declare @currentdatetime datetime
set @currentdatetime=getdate()
select @currentdatetime as '当前系统时间'
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
