All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
.Net中常见问题及解决方法归类_[Asp.Net教程]
PHPUnit袖珍指南之PHPUnit的目的_php资料_编程技术
Asp.Net,通用数据操作类,(附通用数据基类)_[Asp.Net教程]_0
怎样才能成为PHP高手学会懒惰的编程_[PHP教程]
网页制作应掌握技术:随心所欲定制页面"弹出窗口"_JavaScript技术_编程技术
网页最简短的拖动对象代码实例演示_JavaScript技术_编程技术
关于discuz论坛附件不能上传解决办法_php资料_编程技术
使用FileUpload控件上传图片并自动生成缩略图、自动生成带文字和图片的水印图_[Asp.Net教程]
SQL2000里的数据类型_[SQL,Server教程]
概率计算,PHP幸运星_php资料_编程技术
Reading number is top 10 pictures
China's first snake village3
美丽的桂林风光2
浴室里的美女
NeedWallpaper10
The little woman's bright wire1
湖南中医院的养生八图
关于海盗的研究2
Born After 90 Beijing sports university campus flower photos4
徐若瑄展示美丽胸围2
Kim jong il's mistress, national beauty JinYuJi actor1
Download software ranking
C#程序员参考手册
ASP.NET.2.0.XML.高级编程(第3版)
Unix video tutorial17
Ashlynn Video3
超级战舰
Be there or be square
linux初级教程
Unix video tutorial10
Boxer's Top ten classic battle6
Tram sex maniac 2 (H) rar bag3
归海一刀 published in(发表于) 2014/2/17 7:25:05 Edit(编辑)
PHP中常用的几个 mysql 语句_[PHP教程]

PHP中常用的几个 mysql 语句_[PHP教程]

PHP中常用的几个 mysql 语句_[PHP教程]

PHP中常用的几个 mysql 语句
显示数据库或表:
show databases;//然后可以use database_name;
show tables;
更改表名:
alter table table_name rename new_t;
添加列 :
alter table table_name add column c_n column attributes;
删除列:
alter table table_name drop column c_n;
创建索引:
alter table c_table add index (c_n1,c_n2);
alter table c_table add unique index_name(c_n);
alter table c_table add primary key(sid);
删除索引:
alter table c_table drop index c_n1;
更改列信息:
alter table t_table change c_1 c_1 varchar(200);
alter table t_table modify 1 c_1 varchar(200);
insert插入语句:
insert into table_name (c_1,c_2)
values ('x1',1);
update语句:
update table_name set c_1 =1 where c_2=3;
删除数据库或者表:
drop table table_name;
drop database database_name;//使用mysql_drop_db()可以删除的.





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.