mirror of
https://github.com/luapower/mysql.git
synced 2024-12-29 12:20:32 +01:00
unimportant
This commit is contained in:
parent
8a88e36fdb
commit
63beb9ab35
3
mysql.md
3
mysql.md
@ -141,7 +141,8 @@ function print_help(search)
|
|||||||
local mysql = require'mysql'
|
local mysql = require'mysql'
|
||||||
|
|
||||||
local conn = mysql.connect('localhost', 'root', nil, 'mysql', 'utf8')
|
local conn = mysql.connect('localhost', 'root', nil, 'mysql', 'utf8')
|
||||||
conn:query("select name, description, example from help_topic where name like '" .. conn:escape(search) .. "'")
|
conn:query("select name, description, example from help_topic where name like '" ..
|
||||||
|
conn:escape(search) .. "'")
|
||||||
local result = conn:store_result()
|
local result = conn:store_result()
|
||||||
|
|
||||||
print('Found:')
|
print('Found:')
|
||||||
|
Loading…
Reference in New Issue
Block a user