How to determine whether the database libraries and tables exist?
正念的奇迹
正念的奇迹 2017-08-08 10:47:41
0
2
1232

As the question goes, how to determine whether the database libraries and tables exist?

正念的奇迹
正念的奇迹

继续学习奋勇向前

reply all(2)
大家讲道理

if exists(select*from sysobjects where name ='bbsUsers' )
drop table bbsUsers

bbsUsers is the table to be queried

sysobjects is the system table

ringa_lee

You have an operation to connect to the database in the program. If there is no table or library, there will be an error message

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template