0514-86177077
9:00-17:00(工作日)
Mysql的增刪改查語句簡單實現(xiàn)
增加記錄:
insert into tablename(...) values(...) //如果增加的記錄包括所有的列,則不需要寫數(shù)據(jù)列表 insert into tablename values(...)
刪除記錄:
delete from tablename where condition ;
修改記錄:
update tablename set xx=xx , xx=xx... where condition ; alter table tablename set xx=xx , xx=xx... where condition ;
查詢記錄:
select (...) from tablename where condition ; select * from tablename where condition ;
刪除整個表:
drop table tablename ;
添加列:
alter table tablename add column columnname columntype ... ;
刪除列:
alter table tablename drop column columnname ;
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
標簽:武漢 潛江 長沙 江門 南昌 合肥 東莞 吉安
上一篇:mysql輸入中文出現(xiàn)ERROR 1366的解決方法
下一篇:mysql 5.7.11 winx64初始密碼修改
Copyright ? 1999-2012 誠信 合法 規(guī)范的巨人網(wǎng)絡通訊始建于2005年
蘇ICP備15040257號-8