摘要:
begin tryselect 5/0end trybegin catchselectERROR_NUMBER() as N'错误号',ERROR_SEVERITY() as N'错误严重等级',ERROR_STATE() as N'错误状态',ERR... 阅读全文
摘要:
create database temp_databaseuse temp_databasecreate table account (ID int primary key not null,amount int not null)insert account values(1,200)insert... 阅读全文
摘要:
create database temp_databaseuse temp_database--创建表create table testtable( ID int primary key not null, name varchar(50) not null,)go--插入数据inser... 阅读全文
摘要:
--普通数据库create database temp_teston( name = temp_test, filename = 'E:\web\sql\sqlserver\testdatabase.mdf', size = 6, maxsize = 20, fileg... 阅读全文