1. 首页
  2. 数据库
  3. 其它
  4. php判断表是否存在的方法

php判断表是否存在的方法

上传者: 2021-01-03 15:56:43上传 PDF文件 36.06KB 热度 19次
本文实例讲述了php判断表是否存在的方法。分享给大家供大家参考。具体如下: <?php //方法一 mysql_connect('localhost','root','2260375') or die('can\'t not connect database'); if((int)check_table_is_exist('show databases;','test')==1) { echo '该表存在'; } else { echo '该表不存在'; } function check_table_is_exist($sql,$find
下载地址
用户评论