请问如何判断数据库中te2表是否存在,如果存在执行删除操作.
if te2 exists then 请问这句话怎么写呀???
begin
adoquery1.SQL.Clear;
adoquery1.SQL.Text:='drop table te2';
adoquery1.ExecSQL;
end
if te2 exists then 请问这句话怎么写呀???
begin
adoquery1.SQL.Clear;
adoquery1.SQL.Text:='drop table te2';
adoquery1.ExecSQL;
end
adoquery1.SQL.Clear;
adoquery1.SQL.Text:='if exists(select * from sysobjects '+
' where id=object_id(''te2'') and xtype=''U'''
+#13+' drop table te2';
adoquery1.ExecSQL;