03-20-2008, 06:37 PM
|
SQL insert problem
|
|
03-20-2008, 07:23 PM
03-20-2008, 07:47 PM
it is a 'grave accent';
Quote:On many computer keyboards, the grave accent occupies a key by itself, and is meant to be combined with vowels as a multi-key combination. However, programmers have used the key by itself for a number of tasks. http://en.wikipedia.org/wiki/%60#Computer-related on a pc hit "ctl-`" then a vowel and it prints the À à types of letters.
03-20-2008, 07:57 PM
thanks.
do you know how to deal with with apostrophe in values ? maybe a escape in the sql statement ? ,sql="INSERT INTO Adressen (EMISNummer,FB1,FB2,Strasse,Land,PLZ,Ort,Bundesland,Telefon,Telefax,`E-Mail`,Internet,Adressgruppe,Sonstiges2,UnterAdressgruppe,Kundenstatus,Kontakt) VALUES (XXX)"FB1 (company name) is Ain't Missbehavin' i can't change the name.
03-20-2008, 08:25 PM
yeah, that's where i would start.
03-20-2008, 09:22 PM
03-20-2008, 09:52 PM
now i am completely confused
when in the first database where i gather my info the name is Ain''t Missbehavin'' it will be inserted in the second db as Ain't Missbehavin' but when i use FB1.findreplace("'" "''") on orginal name it will be inserted as Ain"t Missbehavin" help :?: :?: :?: :?:
03-21-2008, 03:15 AM
that's because you're searching for the ' and replacing it with a "
i think it'll work with str FB1.findreplace("''" "'")
03-21-2008, 01:20 PM
that was just a test, Ain't Missbehavin' is the original name.
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)

hock: