0

继续获取错误代码。

这是我的数据库:

CREATE TABLE IF NOT EXISTS LOCATION_tbl ( locationid VARCHAR(20) NOT NULL,
                                                                 locationcity VARCHAR(100) NOT NULL,
                                                                                           locationregion VARCHAR(100) NOT NULL,
                                                                                                                       locationcountry VARCHAR(40) NOT NULL,
                                                                                                                                                   PRIMARY KEY (locationid) USE lab3b;

INSERT INTO LOCATION_tbl (locationid, locationcity, locationregion, locationcountry)
VALUES ('GRU',
        'Sao Paulo',
        'Sao Paulo',
        'Brazil');

INSERT INTO LOCATION_tbl
VALUES ('CPT',
        'Cape Town',
        'Western Cape',
        'South Africa');

INSERT INTO LOCATION_tbl
VALUES ('BOG',
        'Bogota',
        'Capital District' ,
        'Colombia');

INSERT INTO LOCATION_tbl
VALUES ('HAN',
        'Hanoi',
        'Som Tay',
        'Vietnam');

INSERT INTO LOCATION_tbl
VALUES ('MUC',
        'Munich',
        'Bavaria',
        'Germany')

帮助任何人??

4

1 回答 1

1

看起来您的 create table 语句中缺少一个结束的 ')'

于 2013-10-01T02:54:48.747 回答