实验训练3 数据增删改操作_第1页
实验训练3 数据增删改操作_第2页
实验训练3 数据增删改操作_第3页
实验训练3 数据增删改操作_第4页
实验训练3 数据增删改操作_第5页
已阅读5页,还剩17页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

【实验3-1】插入数据

(1)使用单记录插入Insert语句分别完成汽车配件表Autoparts、商品类别表category、

用户表Client、用户类别表Clientkind、购物车表shoppingcart、订单表。rder、订单明

细表order_has_Autoparts、评论Comment的数据插入,数据值自定;并通过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训■

Clientkind插入前

QueryIbULI-ilerautopartscommentclientautopartsordershoppingcart

aHI。阍I❷❷(SlDonlEt,I能I♦④皿回

1select*fromClientkind;

<

ResultGrid|超FilterRows:]|Edit:遥昆IExporVlmport:/珞IWrapCellContent:

■二,3me

普通用户

银牌会员

金牌会员

NULLI汕也

Clentkind插入

bULKilerautopartscommentclientautopai

・HI9任只Ol阳I❷❷圈IDoniLimit

1insertintoClientkindvalues。」终身会员")|

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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论