🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.database.mysql
Article #19

Re: 请教一个Mysql的问题。

#19
From: yong
Date: Mon, 15 Jan 2007 09:49
66 lines
4427 bytes
�����������

check the manual that corresponds to your MySQL server version for
the right syntax to use near '' at line 1

д����˫��ţ�"���ĵط����Ĵ��������³��򣬿�����û�мӴ��˫��š�

xiaotiger666@hotmail.com wrote:
> ��Һã�
>             ���õ���MySql 5.1�İ汾������VCд��һ��ADO������������MySql�������ڲ������ĵ�ʱ�����DZ��?
> ��������ǣ�
>        1064 You have an error in your SQL syntax;
>        check the manual that corresponds to your MySQL server version for 
> the right syntax to use near '' at line 1
> 
>        ��д�IJ��������� Insert into 
> T_AddressGroup(F_Owner,F_GroupName,F_Desc) values('admin','������','������');
>        ����һ���Ӣ�ľ���ִ�гɹ���Insert into 
> T_AddressGroup(F_Owner,F_GroupName,F_Desc) values('admin','aaa','aaa');
> 
>        ���ʴ������ʲôԭ���ַ�Ҳ����İ� �Ұ�����Ϊ��
>       Insert into T_AddressGroup(F_Owner,F_GroupName,F_Desc) 
> values('admin',_gbk'������',_gbk'������');
> Ҳ���С�
> 
>       ����һ�£������������ִ�������䶼��û������ģ������һ��ܲ�ѯ������ 
> 
> mysql> show variables like '%char%';
> +--------------------------+--------------------------+
> | Variable_name            | Value                    |
> +--------------------------+--------------------------+
> | character_set_client     | gbk                      |
> | character_set_connection | gbk                      |
> | character_set_database   | gbk                      |
> | character_set_filesystem | binary                   |
> | character_set_results    | gbk                      |
> | character_set_server     | gbk                      |
> | character_set_system     | utf8                     |
> | character_sets_dir       | D:\MySql\share\charsets\ |
> +--------------------------+--------------------------+
> 8 rows in set (0.00 sec)
> mysql> Insert into T_AddressGroup(F_Owner,F_GroupName,F_Desc) 
> values('admin',_gb
> k'������',_gbk'������');
> Query OK, 1 row affected (0.05 sec)
> mysql> select * from T_addressGroup;
> +------+---------+-------------+--------+
> | F_Id | F_Owner | F_GroupName | F_Desc |
> +------+---------+-------------+--------+
> |    1 | admin   | ������      | ������ |
> +------+---------+-------------+--------+
> 1 row in set (0.00 sec)
> mysql> Insert into T_AddressGroup(F_Owner,F_GroupName,F_Desc) 
> values('admin','��
> ����','������');
> Query OK, 1 row affected (0.05 sec)
> mysql> select * from T_addressGroup;
> +------+---------+-------------+--------+
> | F_Id | F_Owner | F_GroupName | F_Desc |
> +------+---------+-------------+--------+
> |    1 | admin   | ������      | ������ |
> |    2 | admin   | ������      | ������ |
> +------+---------+-------------+--------+
> 2 rows in set (0.00 sec) 
> 
> 
Technical Details
Message-ID: <eofimp$pj7$1@news.yaako.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!news.yaako.com!not-for-mail
References: <eke3ir$m6u$1@news.yaako.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114450,6d208fa0adb87342
X-Google-Attributes: gid114450,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!news.yaako.com!not-for-mail
From: yong <cyberblue.yong@gmail.com>
Newsgroups: cn.comp.database.mysql
Subject: Re: 请教一个Mysql的问题。
Date: Mon, 15 Jan 2007 17:49:44 +0800
Organization: Bentium Ltd. (CN99)
Lines: 66
Message-ID: <eofimp$pj7$1@news.yaako.com>
References: <eke3ir$m6u$1@news.yaako.com>
NNTP-Posting-Host: 221.198.85.197
Mime-Version: 1.0
Content-Type: text/plain; charset=x-gbk
Content-Transfer-Encoding: 8bit
X-Trace: news.yaako.com 1168854554 26215 221.198.85.197 (15 Jan 2007 09:49:14 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Mon, 15 Jan 2007 09:49:14 +0000 (UTC)
User-Agent: Icedove 1.5.0.9 (X11/20061220)
In-Reply-To: <eke3ir$m6u$1@news.yaako.com>