Re: [exim] Running a SQL Insert command

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Peter Velan
Date:  
À: exim-users @ exim. org
Sujet: Re: [exim] Running a SQL Insert command
am 07.04.05 15:46 schrieb Michael da Silva Pereira:

> I tried double" and single' nothing makes a difference.
>
>>> warn set acl_m9 = ${lookup mysql {INSERT INTO message_log \
>>> (msgid, from, to, host, ctime) \


I'm using backticks (ok, theres a saying in the mysql comunity about bad
style doing this) because I don't want to study the manual about
allowable column names any time I'm naming a column (or database, or
...). I would write above line as:

(`msgid`, `from`, `to`, `host`, `ctime`) \

>>> values \
>>> ("msgid", \
>>> "from", \
>>> "to", \
>>> "host" \
>>> ,"ctime")}}


Peter