use bbsDBset nocount onprint’>>>>>>>>本论坛即将发布年度无记名评奖<<<<<<<<<–’print’论坛人气年度评估:’if(select sum(SclickCount)from BBsS...
{ 壹小时 }
use bbsDBset nocount onprint’>>>>>>>>本论坛即将发布年度无记名评奖<<<<<<<<<–’print’论坛人气年度评估:’if(select sum(SclickCount)from BBsS...
use newdbif exists(select * from sysobjects where name = ‘student’)drop table student –创建表的同时创建约束create table student(sid int identity(1,1) primary key,sname varchar(20) not null unique,sex...
一、 简单查询 简单的Transact-SQL查询只包括选择列表、FROM子句和WHERE子句。它们分别说明所查询列、查询的表或视图、以及搜索条件等。 例如,下面的语句查询testtable表中姓名为“张三”的nickname字段和email字段...
1. 查看数据库的版本 select @@version 2. 查看数据库所在机器操作系统参数 exec master..xp_msver 3. 查看数据库启动的参数 sp_configure 4. 查看数据库启动时间 select convert(varchar(30),login_time,120) from master..sysproces...
最新评论