MySQL Forums
Forum List  »  German

Re: Variablen von VBS an MySQL übergeben
Posted by: Thomas Wiedmann
Date: November 25, 2011 01:28AM

Hallo Klaus,

soweit ich sehe, liegt der Fehler hier:

mConnection.Execute "INSERT INTO `admins-lokal` (`Servername`) VALUES ('Computer'); "

Wegen der ' - Zeichen um Computer wird nicht der Wert der Variablen Computer, sondern der String 'Computer' gespeichert. Probiert mal...

mConnection.Execute "INSERT INTO `admins-lokal` (`Servername`) VALUES (Computer); "

Hier habe ich die ' bei den VALUES weggelassen. So sollte es eigentlich stimmen.

Grüße
Thomas

Options: ReplyQuote


Subject
Views
Written By
Posted
2888
November 25, 2011 01:20AM
Re: Variablen von VBS an MySQL übergeben
1186
November 25, 2011 01:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.