Article View: cn.comp.database.mysql
Article #20Re: ���һ��Mysql�����⡣
From: paladinxu
Date: Wed, 07 Feb 2007 08:59
Date: Wed, 07 Feb 2007 08:59
68 lines
4539 bytes
4539 bytes
ò��ÿ�����ӵ��ַ���Ҫ��������
"yong" <cyberblue.yong@gmail.com> д����Ϣ����:eofimp$pj7$1@news.yaako.com...
> �����������
>
> 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:
<eqc7e4$3fe$1@news.cn99.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!not-for-mailReferences:
<eke3ir$m6u$1@news.yaako.com> <eofimp$pj7$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!news2.google.com!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!not-for-mail From: "paladinxu" <martinxuhui@gmail.com> Newsgroups: cn.comp.database.mysql Subject: Re: ���һ��Mysql�����⡣ Date: Wed, 7 Feb 2007 16:59:20 +0800 Organization: Bentium Ltd. (CN99) Lines: 70 Message-ID: <eqc7e4$3fe$1@news.cn99.com> References: <eke3ir$m6u$1@news.yaako.com> <eofimp$pj7$1@news.yaako.com> NNTP-Posting-Host: 222.66.34.234 X-Trace: news.cn99.com 1170841860 3566 222.66.34.234 (7 Feb 2007 09:51:00 GMT) X-Complaints-To: usenet@news.cn99.com NNTP-Posting-Date: Wed, 7 Feb 2007 09:51:00 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028