adric: books icon (c) 2004 adric.net (Default)
adric ([personal profile] adric) wrote2006-05-06 02:16 pm
Entry tags:

help @sql

@SQL
@sql

This command issues and SQL query if the MUSH supports SQL and
can connect to an SQL server. You must be WIZARD or have the
Sql_Ok power to use @sql.

Generally, the sql() function is more useful for coding, as it
delimits its return values, but @sql is handy for INSERT-type
queries and quick checks. If you pass arbitrary data to @sql,
be sure you call sqlescape() on it (see the example in help sql()).

Example: @sql SHOW TABLES

See also: sql(), sqlescape()

pennmush 1.8.1p4, or the deb, of course