sql脚本创建表【如已经有表,先删除,后创建】

来源:互联网 发布:淘宝男装女装一起卖 编辑:程序博客网 时间:2024/06/05 10:17
if  exists(select * from sysobjects where  type = 'U' and name = 'tablename')

drop table tablename;


查看所有的数据库

SELECT * FROM sysdatabases;

0 0
原创粉丝点击