Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. sql = "select id from agent where extension = '9072' limit 1"
  2. cursor,errorString = conn:execute(sql)
  3. value = nil
  4. if cursor then
  5. row = cursor:fetch ({}, "a") -- we'll have 0 or 1 rows
  6. if row then value = row.id end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement