![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
* Hi all, in order to manage the special character into descrition field (i.e.: "Description 1, sddsd'") the sql query returns an error about ' character. I have correct this query with this description : "Description 1, sddsd\'". It's the right way ? can i do better ? many thanks. Onorato. |
#3
| |||
| |||
|
|
Hi all, in order to manage the special character into descrition field (i.e.: "Description 1, sddsd'") the sql query returns an error about ' character. I have correct this query with this description : "Description 1, sddsd\'". It's the right way ? can i do better ? |
#4
| |||
| |||
|
|
On 24 Sep, 09:52, softwareEngineer<ov77NOS... (AT) NOSPAMlibero (DOT) it> wrote: Hi all, in order to manage the special character into descrition field (i.e.: "Description 1, sddsd'") the sql query returns an error about ' character. I have correct this query with this description : "Description 1, sddsd\'". It's the right way ? can i do better ? many thanks. Onorato. Who can tell? You haven't shown us the query. You haven't shown us the error message. |
#5
| |||
| |||
|
|
Il 24/09/2010 11.19, Captain Paralytic ha scritto: On 24 Sep, 09:52, softwareEngineer<ov77NOS... (AT) NOSPAMlibero (DOT) it> wrote: Hi all, in order to manage the special character into descrition field (i.e.: "Description 1, sddsd'") the sql query returns an error about ' character. I have correct this query with this description : "Description 1, sddsd\'". It's the right way ? can i do better ? many thanks. Onorato. Who can tell? You haven't shown us the query. You haven't shown us the error message. The query is : --> INSERT INTO device SET id = 26, configuration = 14, communication = 40, description = 'SCORZE' 297'; It is generated by automated process written in c (through mySQL c api). which is the correct way to handle this type of situations ? now, via code, i replace into the "description" string the ' char with \' . but IT'S ok ? is it ANSI SQL ? many thanks. top posting fixed |
#6
| |||
| |||
|
|
The query is : --> INSERT INTO device SET id = 26, configuration = 14, communication = 40, description = 'SCORZE' 297'; It is generated by automated process written in c (through mySQL c api). which is the correct way to handle this type of situations ? now, via code, i replace into the "description" string the ' char with \' . but IT'S ok ? is it ANSI SQL ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |