This topic has been archived. It cannot be replied.
-
枫下家园 / 电脑用户 / Access中,怎么得到一个表的结构?是指用SQL描述的,能不能自动产生的?里面有没有什么SQLPLUS?谢谢
-rabbitbug(兔八哥);
2002-6-9
(#567369@0)
-
I don't think so.
-jeffrey815(Smartiecat);
2002-6-9
(#567371@0)
-
你想得到怎样一个表的结构,把问题说清楚,想用sql建一个表,还是其他的问题。
-lilyba(Sunshine);
2002-6-9
(#567411@0)
-
已经有一现成的表了,我要知道它的结构,用SQL描述的。就是用SQL建一个表,当然我们自己写也可以,但能不能把现成的表转成一个SQL呢?
-rabbitbug(兔八哥);
2002-6-9
(#567437@0)
-
I don't think Access can do it.
-jeffrey815(Smartiecat);
2002-6-9
(#567441@0)
-
在access中建立一新的query。加入该表。选择想要的fields加入。若想全要,可以用shift键。新建query为select类型。在access中建立一新的query。加入该表。选择想要的fields加入。若想全要,可以用shift键。新建query为select类型。
你可以在菜单中选择query类型,改变query的类型为create.这样产生的query就是你直接想要的。
出现错误,只好在输一遍。5555555
-lilyba(Sunshine);
2002-6-9
{230}
(#567450@0)
-
对Access真是不熟啊,在哪个菜单里有选query,create类型的?对了,我是中文的,谢谢Liyba,也要谢谢Jeffrey
-rabbitbug(兔八哥);
2002-6-9
(#567460@0)
-
我的是英文access.当你把要加的表及其fields加入后,菜单中有query(应该是第5个),点击后,在下拉菜单中,有make table query.汉语建立新表。然后输入要见表的名字。试试。
-lilyba(Sunshine);
2002-6-9
(#567473@0)
-
可以了,但一般只有select,update语句,没有产生create table语句过
只是简单的select * into 表2 from 表1
-rabbitbug(兔八哥);
2002-6-9
(#567489@0)
-
yes, you are right. At first I use my win2k, in which accesswas not installed . So I just thought about it did not try it.
-lilyba(Sunshine);
2002-6-9
(#567500@0)
-
真的很感谢,下面的问题也请帮个忙,嘻嘻
-rabbitbug(兔八哥);
2002-6-9
(#567505@0)
-
我还真没见过下面的问题。我给出的办法是在一本讲授sql的书上看到的。你先告诉我标准的sql语句如何修改表名。
-lilyba(Sunshine);
2002-6-9
(#567507@0)
-
一般的大型数据库好象没有用语句改表名的,sybase和sql server倒是提供了存储过程sp_rename来改表名,ORACLE是不能改表名的。以前我也都是采用曲线救国方法,建一新表。但SQLAnywhere能改,Alter Tabe 旧表名 Rename 新表名
-rabbitbug(兔八哥);
2002-6-9
{48}
(#567540@0)
-
可以在ACCESS中用SQL 建表和改表,以下是MS ACCESS的帮助,不知道对你有没有用。
-wuda(乌达);
2002-6-9
{808}
(#567612@0)
-
But you don't know where the field is a text, varchar, char, etc which is the structure part though...
-jeffrey815(Smartiecat);
2002-6-9
(#567462@0)
-
另外,用什么语句可改表名?在SQLSERVER中有存储过程,在ACCESS里能用ALTER TABLE改表名么?
-rabbitbug(兔八哥);
2002-6-9
(#567447@0)
-
由于表之间的关系存在,最好不要该表明。简单的按以下步骤绕过他:由于表之间的关系存在,最好不要该表明。简单的按以下步骤绕过他:
1。建立新表,取表名为你想要的表名。
2。利用insert query把数据加入到新表。
3。建立新表和其他表的关系。
4。删除老表。
-lilyba(Sunshine);
2002-6-9
{182}
(#567456@0)
-
我也是这么想的,但这是一个题目拉,他们说要改表名,只好给他改拉。连很多标准的SQL在ACCESS都不能用,真是麻烦
-rabbitbug(兔八哥);
2002-6-9
(#567464@0)
-
这里我把问题想复杂了。没这么复杂,我试一下。等等
-lilyba(Sunshine);
2002-6-9
(#567475@0)
-
没有找到别的办法,我能想到的就是用 select into 新表名,然后用tabledefs.delete "旧表名”,如果不存在关系,两个query解决问题。
-lilyba(Sunshine);
2002-6-9
(#567517@0)
-
谢谢,另外报表用语句是怎么创建的?比如有一个表:tabl1,有四个字段,col1,col2,col3,col4
建个report,有col1,col2,col3三个字段的,怎么写语句?
-rabbitbug(兔八哥);
2002-6-9
{103}
(#567530@0)
-
你的report从那里建,用什么建。access report , crystal report, vb report?
-lilyba(Sunshine);
2002-6-9
(#567533@0)
-
就是Access report拉,不是用手工建,要用什么语句
-rabbitbug(兔八哥);
2002-6-9
(#567542@0)
-
那是用程序建么?先给report的datasoure赋值,再对text控件,设置control source 属性。
-lilyba(Sunshine);
2002-6-9
(#567549@0)
-
在access report中,有record source属性,数据来源可以是表,查询,或sql 语句。
-lilyba(Sunshine);
2002-6-9
(#567544@0)