📄 subject_43676.htm
字号:
<p>
序号:43676 发表者:晓飞 发表日期:2003-06-13 00:10:56
<br>主题:insert的使用?
<br>内容:在一个名为tyyhyx的数据库中.建立一个名为.aoxiang 的表格。<BR>表格有三列分别是:lastname(char(20)),firstname(char(20))和<BR>id(int)请再建立一个表格student,表中也与三列分别是<BR>stu-lname(char(15)),stu-fname(char(15))和id(int)<BR>如果用insert语句在student中插入5行数据。<BR>将表student中的数据全部移到表tyyhyx中去<BR>因该怎么写急急急!!!<BR>最后能详细的说明!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:世外高人 回复日期:2003-06-13 08:43:26
<br>内容:1> create table aoxing(<BR>2> lastname char(20),<BR>3> firstname char(20),<BR>4> id int)<BR>5> go<BR>1> create table student(<BR>2> stu_lname char(15),<BR>3> stu_fname char(15),<BR>4> id int)<BR>5> go<BR>1> insert student<BR>2> values('a','b','1')<BR>3> go<BR>(1 行受到影响)<BR>1> insert student<BR>2> values('a','b','1')<BR>3> go<BR>(1 行受到影响)<BR>1> insert student<BR>2> values('a','b','1')<BR>3> go<BR>(1 行受到影响)<BR>1> insert student<BR>2> values('a','c','2')<BR>3> go<BR>(1 行受到影响)<BR>1> insert student<BR>2> values('a','b','3')<BR>3> go<BR>(1 行受到影响)<BR>1> insert aoxing<BR>2> select * from student<BR>3> go<BR>(5 行受到影响)<BR>1> select * from student<BR>2> go<BR> stu_lname stu_fname id<BR> --------------- --------------- -----------<BR> a b 1<BR> a b 1<BR> a b 1<BR> a c 2<BR> a b 3<BR><BR>(5 行受到影响)<BR>1> select * from aoxing<BR>2> go<BR> lastname firstname id<BR> -------------------- -------------------- -----------<BR> a b 1<BR> a b 1<BR> a b 1<BR> a c 2<BR> a b 3<BR><BR>(5 行受到影响)
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:晚风也渡 回复日期:2003-06-13 20:26:24
<br>内容:你是想让新插入的5行转移到aoxiang中,还是全部数据都转移到aoxiang中?<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:晓飞 回复日期:2003-06-13 22:15:58
<br>内容:就那5行转移到aoxiang中去的<BR>呵姐姐你也来了谢了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:晓飞 回复日期:2003-06-16 03:06:41
<br>内容:我看了上面的程序好象不是我想要的呀!!!!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -