Forum: Datenbanken
Delphi
by Aphton,
28. Feb 2013
Nein...
const
queryInsertMedia =
'INSERT INTO media (mediatitle, description, status, isbn, publicationyear, insertdate, fk_place_id, fk_publisher_id, fk_author_id, fk_category_id, fk_language_id, fk_entleiher_id, edition) ' +
'VALUES ("%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s")';
{...}
sSql := Format(queryInsertMedia, );
Forum: Datenbanken
Delphi
by Aphton,
28. Feb 2013
Benütze bitte Format(), bitte!
Ich hab mich auch vor einiger Zeit damit gequält - deshalb hab ich einfach ne Konvertier Funktion für DateTime geschrieben, die ich dann als String abspeichere!