亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標題: 用4GL設(shè)計數(shù)據(jù)庫的問題? [打印本頁]

作者: 寒鈴    時間: 2003-02-16 16:42
標題: 用4GL設(shè)計數(shù)據(jù)庫的問題?
請問各位,我在用4GL寫的創(chuàng)建數(shù)據(jù)庫的程序,總是提示語法錯誤,程序如下:

main
   create database dddd
   create   table aaa
        (
           bbb  char(4)   primary key,
           ccc    char(
        )
end main


編譯該文件,提示主鍵primary key語法錯誤,錯誤號-4373,  刪去primary key,則編譯通過.  請問該如何設(shè)置表的主鍵?




         
作者: 大夢    時間: 2003-02-17 15:41
標題: 用4GL設(shè)計數(shù)據(jù)庫的問題?
你搞錯了!
main
create database test
create table qry_oclk
     (
       branch_no         varchar(6)   not null,
       oclk_code         varchar(   not null,
       oclk_name         varchar(   not null,
       oclk_pass         varchar(   not null,
       primary key (branch_no,oclk_code) constraint pk_qry_oclk
     );
end main
作者: 寒鈴    時間: 2003-02-17 21:15
標題: 用4GL設(shè)計數(shù)據(jù)庫的問題?
原帖由 "大夢" 發(fā)表:
你搞錯了!
main
create database test
create table qry_oclk
     (
       branch_no         varchar(6)   not null,
       oclk_code         varchar(   not null,
       oclk_name         varcha..........


大夢,我用c4gl  test.4gl -o test執(zhí)行以上代碼,生成test.err文件如下:

main
create database test
create table qry_oclk
(
branch_no varchar(6) not null,
oclk_code varchar(2) not null,
oclk_name varchar( not null,
oclk_pass varchar(6) not null,
primary key (branch_no,oclk_code) constraint pk_qry_oclk
|________^
|
|      A grammatical error has been found on line 9, character 12.
| The construct is not understandable in its context.
| See error number -4373.
|________^
|
|      A grammatical error has been found on line 9, character 12.
| The construct is not understandable in its context.
| See error number -4373.
|__________________^
|
|      A grammatical error has been found on line 9, character 23.
| The construct is not understandable in its context.
| See error number -4373.
);
end main
作者: 寒鈴    時間: 2003-02-17 21:32
標題: 用4GL設(shè)計數(shù)據(jù)庫的問題?
為什么會出現(xiàn)這種錯誤? 正確的語法應(yīng)該如何書寫?

謝謝了。。
作者: 大夢    時間: 2003-02-18 08:53
標題: 用4GL設(shè)計數(shù)據(jù)庫的問題?
但是那條sql是可以單獨在dbaccess下運行的!
可能是4gl不支持這么寫!
你就直接寫條sql得了!




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2