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

Reading number is top 10 articles
在ASP.NET2.0中创建Web应用程序主题_[Asp.Net教程]
网站的ALEXA排名下降的原因及解决方法_JavaScript技术_编程技术
Linux下Apache并发连接数和带宽控制_php资料_编程技术
轻松掌握Ajax.net系列教程六:使用PopupControlExtender_[Asp.Net教程]
C#中TreeView控件应用实例
FCKEditor在Asp.net环境下的配置安装_.net资料_编程技术
SQL循序渐进(24)嵌入SQL_[SQL,Server教程]
用php实现gb2312和unicode(UTF-8)间的编码转换_[PHP教程]
C#,Enum设计和使用的相关技巧_.net资料_编程技术
PHP也可以当成Shell,Script进行使用_php资料_编程技术
Reading number is top 10 pictures
NeedWallpaper10
赵惟依写真3
美女当网吧管理员的悲剧
China's programmers are live what kind, had a look at will know that
奇趣的世界记录3
赵惟依写真2
乳娘帕梅拉安德森1
The little woman's bright wire1
中国女孩大胆自拍,显露完美身材3
这还能睡得着?
Download software ranking
Sora aoi's film--cangkong_Blue.Sky
C++编程教程第三版
Love the forty days
Boxer's Top ten classic battle7
打鸟视频
Take off clothes to survival
传奇私服架设教程
SP4 for SQL2000
SQL2000 For 4IN1
金山office2007
aaa published in(发表于) 2013/12/21 22:24:57 Edit(编辑)
PHP中常用的几个,mysql,语句_php资料_编程技术

PHP中常用的几个,mysql,语句_php资料_编程技术

PHP中常用的几个 mysql 语句_php资料_编程技术-你的首页-uuhomepage.com
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.