diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-03 19:08:11 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-03 19:08:11 -0700 |
commit | ba76e2efe6eee9c38822c935c1ecf598ed3f0747 (patch) | |
tree | b0d2adde988316c40e27293dff72b8807b3929f3 /lib | |
parent | 6733763ad7c13864ccdfd3c50c1547724e20e7aa (diff) |
One last example with nextrow
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dblib.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua index e9da88a..d11e1ff 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -60,6 +60,8 @@ t:restrict() -- WHERE 1 t:select() print(t:numrows()) -- prints "4" print(t:numfields()) -- prints "3" +row = t:nextrow() +print(row.field1) -- prints "test1" ]]-- |