Advertisement
Guest User

Untitled

a guest
Mar 9th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. //create table
  2. sql="create table em(name int primary key,age int);"\
  3. "create table idv(id int primary key,name text);"\
  4. "create table mny(id int primary key,sal int);"\
  5. "create table lo(name int primary key,addr text);";
  6.  
  7. //query
  8. sql="select * from lo,em,idv where lo.name=em.name and em.name=idv.name";
  9.  
  10.  
  11. //vdbe program
  12.  
  13. 0 Init 0 38 0 00
  14. 1 OpenRead 2 5 0 2 00
  15. 2 OpenRead 1 2 0 2 00
  16. 3 OpenRead 3 3 0 k(2,nil,nil) 00
  17. 4 OpenRead 0 9 0 2 00
  18. 5 OpenRead 4 4 0 k(2,nil,nil) 00
  19. 6 Rewind 2 32 0 00
  20. 7 Column 2 1 1 00
  21. 8 IsNull 1 31 0 00
  22. 9 Affinity 1 1 0 D 00
  23. 10 SeekGE 3 31 1 1 00
  24. 11 IdxGT 3 31 1 1 00
  25. 12 IdxRowid 3 2 0 00
  26. 13 Seek 1 2 0 00
  27. 14 Column 3 0 3 00
  28. 15 IsNull 3 31 0 00
  29. 16 Affinity 3 1 0 D 00
  30. 17 SeekGE 4 31 3 1 00
  31. 18 IdxGT 4 31 3 1 00
  32. 19 IdxRowid 4 4 0 00
  33. 20 Seek 0 4 0 00
  34. 21 Column 4 0 5 00
  35. 22 Column 3 0 6 00
  36. 23 Ne 6 31 5 (BINARY) 53
  37. 24 Copy 5 7 0 00
  38. 25 Column 0 1 8 00
  39. 26 Copy 6 9 0 00
  40. 27 Column 1 1 10 00
  41. 28 Column 2 0 11 00
  42. 29 Column 2 1 12 00
  43. 30 ResultRow 7 6 0 00
  44. 31 Next 2 7 0 01
  45. 32 Close 2 0 0 00
  46. 33 Close 1 0 0 00
  47. 34 Close 3 0 0 00
  48. 35 Close 0 0 0 00
  49. 36 Close 4 0 0 00
  50. 37 Halt 0 0 0 00
  51. 38 Transaction 0 0 43444 0 01
  52. 39 TableLock 0 5 0 idv 00
  53. 40 TableLock 0 2 0 em 00
  54. 41 TableLock 0 9 0 lo 00
  55. 42 Goto 0 1 0 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement