mysql下创建字段并设置主键的php代码
更新时间:2010年05月16日 23:11:50 作者:
php+mysql创建字段并设置主键示例
复制代码 代码如下:
mysql_select_db("hills_database_test",$dbcon);
$alterpkadd="alter table hills_testcreatetable add id int(32) not null auto_increment primary key;";
mysql_query($alterpkadd,$dbcon);
mysql_close($dbcon);
嘿嘿。。好容易哟。。一句话搞定
相关文章
提示Trying to clone an uncloneable object of class Imagic的解决
使用网上流传的一个程序实现pdf截图为png,需要使用Imagic扩展,安装后出现Trying to clone an uncloneable object of class Imagic提示,下面是具体的解决方法分享。2011-10-10
php数组函数序列之in_array() - 查找数组中是否存在指定值
in_array()定义和用法 in_array() 函数查找数组中是否存在指定值2011-11-11


最新评论