Es sql queryvalue
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xsql queryvalue [edit] DescriptionSame as es_sql query, but stores only the first row/column value into variable. Useful for COUNT()/SUM() queries. [edit] Parameters
[edit] ExamplesSee the ServerMail example in ES v1.5 for a detailed example. // open a SQLite database file, creates/opens es_mydb.sqldb es_sql open mydb |myscript es_xset myvar 0 es_sql queryvalue mydb myvar "SELECT * FROM mytable WHERE myname='Mattie';" if (server_var(myvar) != 0) then es_xmsg Found a result!
[edit] Notes
[edit] See also
|
