sql server的话,用sa登陆不就行了
is exists(select 1 from sysobjects where name='...')
begin
drop table ...
end
go
create table ...
()
你说的意思是不是以SA权限登录进去创建两张表啊?
难道是在SQL语句里面还能表示出来?
删除语句
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)
是建表的时候判断吗?
建表频繁不?
sqlserver 打开任一个表的script就是这样的