摘要:
很多情况下,我们要提前用到当前某个表的auto_increment自增id,可以通过执行sql语句来查询到这个id值。show table status where name=’表名’或者show table status like ‘表名’然后从查询到的结果集中获得auto_increment的值代码实例:<?php mysql_connect("localhost","root",''); mysql_select_db("test"); $sql="show table status where 阅读全文
posted @ 2012-02-18 20:42
阿酷影
阅读(1254)
评论(0)
推荐(1)
浙公网安备 33010602011771号