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

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2758 | 回復(fù): 4
打印 上一主題 下一主題

用4GL設(shè)計數(shù)據(jù)庫的問題? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2003-02-16 16:42 |只看該作者 |倒序瀏覽
請問各位,我在用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è)置表的主鍵?




         

論壇徽章:
11
數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-06-25 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-06-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-05-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-21 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-01-23 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-12-03 06:20:00綜合交流區(qū)版塊每周發(fā)帖之星
日期:2015-12-02 15:03:53數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-10-19 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-20 06:20:002015年辭舊歲徽章
日期:2015-03-03 16:54:15數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-07-30 06:20:00
2 [報告]
發(fā)表于 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

論壇徽章:
0
3 [報告]
發(fā)表于 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

論壇徽章:
0
4 [報告]
發(fā)表于 2003-02-17 21:32 |只看該作者

用4GL設(shè)計數(shù)據(jù)庫的問題?

為什么會出現(xiàn)這種錯誤? 正確的語法應(yīng)該如何書寫?

謝謝了。!

論壇徽章:
11
數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-06-25 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-06-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-05-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-21 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-01-23 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-12-03 06:20:00綜合交流區(qū)版塊每周發(fā)帖之星
日期:2015-12-02 15:03:53數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-10-19 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-20 06:20:002015年辭舊歲徽章
日期:2015-03-03 16:54:15數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-07-30 06:20:00
5 [報告]
發(fā)表于 2003-02-18 08:53 |只看該作者

用4GL設(shè)計數(shù)據(jù)庫的問題?

但是那條sql是可以單獨在dbaccess下運行的!
可能是4gl不支持這么寫!
你就直接寫條sql得了!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP