可移植SQL确定表是否存在? [英] Portable SQL to determine if a table exists or not?

查看:70
本文介绍了可移植SQL确定表是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种确定数据库表是否已经存在的便携式方法?

Is there a portable way of determining if a database table already exists or not?

推荐答案

是否可移植?我不这么认为.

Portable? I don't think so.

也许您可以获得的最接近的是:

Maybe the closest you can get is:

select * from <table>

如果表不存在,这将返回错误.

And this would return an error if the table doesn't exist.

这篇关于可移植SQL确定表是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆