国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

常用mysql操作

2024-07-24 12:40:20
字體:
來源:轉載
供稿:網友
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()可以刪除的.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 库尔勒市| 湖州市| 呼玛县| 图们市| 元氏县| 乌审旗| 枝江市| 波密县| 泾川县| 大同县| 武汉市| 红河县| 博罗县| 舞钢市| 五常市| 玉林市| 梅河口市| 南川市| 太和县| 上杭县| 延长县| 孝义市| 尤溪县| 韩城市| 镇安县| 浦江县| 堆龙德庆县| 财经| 江油市| 蛟河市| 宣化县| 姚安县| 法库县| 绥化市| 霍城县| 武夷山市| 正阳县| 光泽县| 偏关县| 塔河县| 巴彦县|