以为你的sql语句没有给出,从你的错误提示推测,你的第三个字段income是不是in和come之间有空格?

解决方案 »

  1.   

    这只是推测,还希望楼主把你的sql贴出来。
      

  2.   

    CREATE TABLE quest_request_res (
       agegrp tinyint(2) DEFAULT '0' NOT NULL,
       sex text NOT NULL,
       income int(8) DEFAULT '0' NOT NULL,
       pepnum tinyint(2) DEFAULT '0' NOT NULL,
       address text NOT NULL,
       edu text NOT NULL,
       youth tinyint(1) DEFAULT '0' NOT NULL,
       reader tinyint(1) DEFAULT '0' NOT NULL,
       other tinyint(1) DEFAULT '0' NOT NULL,
       shenzhen tinyint(1) DEFAULT '0' NOT NULL,
       ress tinyint(1) DEFAULT '0' NOT NULL,
       PRIMARY KEY (agegrp)
    );就是在 copy到htdoc目录下时报错,数据库究竟应该放在什么位置才能执行?
      

  3.   

    你的 CREATE 语句没有任何问题呀,只是最后你说 COPY 什么的,
    我不明白了,
    我想也就是你说出错的原因了
      

  4.   

    php程序要连接到在phpmyadmin下建的mysql数据库,那么不是要copy到htdocs下 吗?
      

  5.   

    PRIMARY KEY (agegrp)
    primary key must be unique ????try unique it or autoincrease it and tell us the result ..
      

  6.   

    楼主,你的提示可明明是sql的语法错误啊,真让人疑惑。