时间:2021-07-01 10:21:17 帮助过:4人阅读
create database DbName
sp_renamedb ‘old_name‘, ‘new_name‘
Backup Database *database_name*
To disk=‘*C:\DataBase_Back.bak*‘
DROP DATABASE DbName
create table tabname (
col1 type1 [not null],
col2 type2 [not null],..
)
Alter table tabname add primary key(col)
Alter table tabname drop primary key(col)
create index idxname on tabname(col….)
drop index idxname
create view viewname as select statement
drop view viewname
SQL常用命令
标签:数据库名 not ack sel asi family drop nbsp null