99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2018-11-01 閱讀量: 990
數(shù)據(jù)定義語(yǔ)言

常用的操作命令:insert\update\delete

1、insert

----語(yǔ)法:insert into 表名 values(各列的值,用逗號(hào)隔開)

注意:插入的值如果是字符類型,需要用單引號(hào)

插入的值要與定義的字段類型一致

1)不使用列表,直接插入,必須一一對(duì)應(yīng)

語(yǔ)法:insert into 表名 values(值用逗號(hào)隔開)

如果順序不一樣,必須指定字段名和值

insert into 表名(插入字段名)values(值與字段名對(duì)應(yīng))

插入部分字段

2、導(dǎo)入外部數(shù)據(jù)

導(dǎo)入外部文本文件

為數(shù)據(jù)表monthly-indicator導(dǎo)入txt文件

語(yǔ)法:

load data local infile '文件路徑/名稱.txt'

into table monthly_indicator

fields terminated by '/t'

ignore 1 lines;

注意路徑中斜杠的方向有所變化

3、delete

刪除行數(shù)據(jù)

delete from 表名 where 列名=值;(比如:where id='a01')

4、update

修改行數(shù)據(jù)

update 表名 set 新列=新列名 where 某列=某值

0.0000
1
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無(wú)數(shù)據(jù)
推薦帖子