實(shí)驗訓(xùn)練3 數(shù)據(jù)增刪改操作_第1頁
實(shí)驗訓(xùn)練3 數(shù)據(jù)增刪改操作_第2頁
實(shí)驗訓(xùn)練3 數(shù)據(jù)增刪改操作_第3頁
實(shí)驗訓(xùn)練3 數(shù)據(jù)增刪改操作_第4頁
實(shí)驗訓(xùn)練3 數(shù)據(jù)增刪改操作_第5頁
已閱讀5頁,還剩17頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

【實(shí)驗3-1】插入數(shù)據(jù)

(1)使用單記錄插入Insert語句分別完成汽車配件表Autoparts、商品類別表category、

用戶表Client、用戶類別表Clientkind、購物車表shoppingcart、訂單表。rder、訂單明

細(xì)表order_has_Autoparts、評論Comment的數(shù)據(jù)插入,數(shù)據(jù)值自定;并通過select語句

檢查插入前后的記錄情況。

Autoparts插入前

口81工a.9穹n二?丁?a?1三

WeightB.general

2019-09-0900?):00

20i9-09^?00:00:00

2OW-O9-O900^0:00

20193s8:8:00

20190as8:00:8

2019668:00:00

a?-oe-o900:00:00

2o?-oe-<?aM>o:oo

??-064900K)0:Oa

20?-O8-09(0:00:00

0

Autoparts插入

1?1〉/招?II111I3J

1insertintoautopartsvalues。,"前若墊",")00004”,"3000(",”>0000£\"前咨荃",.,,,,.,,,,now(),now(),:,,"本田");|

Autoparts插入后

曾’WfcjopiruawonidMauecpMtto?W*h?<?r>y4?:aocJwtotantSOlFgirel?rl3f*oo<>?ra>??o(>?rt?_ccc>/1

H:jASb%AMSI???Q》?

1?elect,frtn?utop?rtd

二£

E

3323

XXX黑X

BA器

4J4m0

U3

11H1lll器

22H2

22切2

XXmXH222

E222

222222翳

黑222

22皿2

2222署

E?23

V40

£器

>oo

U3nl

3111222器

EZ2切222H2

H

XX黑X22H2

22H2

£222器

22e22

Z2的2

l

需?

cm

Category插入前

■HI9倍鼠◎窿IMlLjmit

1select*fromcategory;

ResultGriduFilterRows:|Edit:掰|1i自□|Expor

CategoryJDNameDescribeCategoryCID

類d111

jn

類2

Hd別2=

J

類d

u1o1

10

Category插入

Query1xSQLFile1*autopartscommentclientautopartsorder

^Hlrf^OlmlOOKIIDonlUmft,I%9

1insertintocategoryvalues(,”類別3","類別3",)|

Category插入后

?01g停??圈IDonlUmit,I%I?c

select*fromcategory;

ResultGrid|用FilterRows:|Edit:國IExport/Import:電

CategoryJDNameDescribeCategory_CJD

*nJ1別1

大J

西

另22

*UJ別

大JK

i*別

33—

KjnK

另nJ1O=

u10

Client插入前

8Ir價艮O閽I。?窗IDontbmt▼I%l*R血國

1select*fromClient;

ResultGrid|盤FilterRows:||Edft:jExport/Import:|WrapCellContent:

ddImageCnamePasswordphonenumberEmailCreatetimeCkind

?1xxxx12345615509871234zs@126.com2019-01-0100:00:001

2XXX232221334476543Is?s.com2018-02-0100:00:002

3xxxxWW23452345ws@2017-09-0800:00:003

4xxxx23333333333ws@2019-11-1100:00:001

5龍

1122rrmws@2019-02-0300:00:002

100XXXXS322222222222zsr@126,com2019-02-0300:00:001

|州消,.HULL

Client插入

Query1xSQLFileVautopartscommentclientautopartsordershoppingcartofderhasautopartsSQLF

fAOISieOSlOon'lM;

1insertintoClientvalues(_?_11,"xxxxx">"lucy","321111"?r,5o"lucy^l26.com",now(),-);|

Client插入后

?8,愛兔O閽I?>?IDonWml,I電14Q血回

1select*fromclient;!

ResultGrid|需。RterRows:|I;Edi:氫>|Export/Irnport:毛|喘^)|WrapCeBContent:JA

ddImageCnamePasswordphonenumberEmailCreatetimeCkind

1XXXX12345615509871234zs@126,com2019-01-0100:00:001

2XXX232221334476543ls@2018-02-0100:00:002

3xxxxww23452345ws@ws.com2017-09-0800:00:003

4xxxx23333333333ws@ws.com2019-11-1100:00:001

n也I*子

5112222222ws@ws.com2019-02-0300:00:002

100XXXX樹22222222222zsr@126,com2019-02-0300:00:001

101xxxxxlumcy32111116687653562lucy@126,com2019-11-3021:31:442

MULL■pnniTii訓(xùn)■

Clientkind插入前

QueryIbULI-ilerautopartscommentclientautopartsordershoppingcart

aHI。閽I??(SlDonlEt,I能I?④皿回

1select*fromClientkind;

<

ResultGrid|超F(xiàn)ilterRows:]|Edit:遙昆IExporVlmport:/珞IWrapCellContent:

■二,3me

普通用戶

銀牌會員

金牌會員

NULLI汕也

Clentkind插入

bULKilerautopartscommentclientautopai

?HI9任只Ol陽I??圈IDoniLimit

1insertintoClientkindvalues?!菇K身會員")|

Clentkind插入后

|SQLMe「autopartscommen

08I伊派且博

1select*fromClientkind;|

ResultGrid|眄FilterRows:

KidName

1普通用戶

2銀牌會員

金牌會員

終身會員

NULL12州

shoppingcart插入前

Query1xSQLFilerautopartscommentclientautopar

彳HI9OISIOOSI82E

31select*fromshopping.shoppingcar-q;

ResultGrid|盤FilterRows:|Export:WrapCellCor

Autoparts_apidClient_ddNumberadd_time

?1122019-11-2722:13:07

1122019-11-2722:13:48

2122019-11-2722:13:48

3222019-11-2722:13:48

1122019-11-2722:13:48

2222019-11-2722:13:48

2322019-11-2722:13:48

2422019-11-2722:13:48

Shoppingcart插入

1insertintoshoppingcartvalues(>,j2,now());

Shoppingcart插入后

CiHl^^^0lSlQOfl|DontUmit-|i

1

2?select*fromshoppingcart;|

3

ResultGrid|盤FilterRsvs:__________________11Export:WrapCellConfer

Autoparts_apidCiient_ddNumberadd_time

?1122019-11-2722:13:07

1122019-11-2722:13:48

2122019-11-2722:13:48

3222019-11-2722:13:48

1122019-11-2722:13:48

2222019-11-2722:13:48

2322019-11-2722:13:48

2422019-11-2722:13:48

2422019-11-3021:50:18

order插入前

ftHXAto■?x、J-%,?0q-

Iwl.rt?t

、.

一W_A二

d

?7h£一Jr-H

mxI=.82Lene.

x.8l皿?

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論