SQL写程序语句

2025-12-17 03:54:07
推荐回答(5个)
回答1:

sql server的话,用sa登陆不就行了

is exists(select 1 from sysobjects where name='...')
begin
drop table ...
end
go

create table ...
()

回答2:

你说的意思是不是以SA权限登录进去创建两张表啊?

难道是在SQL语句里面还能表示出来?

回答3:

删除语句
select * from login a
where rowid!=(select min(rowid) from login b where a.username=b.username)

delete from login a
where rowid!=(select max(rowid) from login b where a.username=b.username)

回答4:

是建表的时候判断吗?

建表频繁不?

回答5:

sqlserver 打开任一个表的script就是这样的