一.Oracle --创建表 create table test ( id varchar2(200) primary key not null, sort number, name varchar(200) ) --字段加注释 comment on column test.id is 'id'; comment on column test.sort is '序号'; --表加注释 comment on table test is '测试表' 二.Mysql -…
创建表: create table tb1( id int , name ) ) ------------------------------------------------- 创建返回游标的存储过程: create proc tb1_proc ( @cur cursor varying output ) as begin set @cur=cursor for select * from tb1 end open @cur ---------------------------------…
--创建登录账户和数据库用户 ' exec sp_grantdbaccess 'sysAdmin','aa' --给数据库用户赋权限 grant select,update,insert,delete on userInfo to aa --建立数据库前的判断 Use master GO if exists(select * from sysdatabases where name='bankDB') drop database bankDB GO exec xp_cmdshell 'md d:…