Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Insert the new record after a exsiting result
  2. shop_vnum   item_vnum   count
  3. 4           13209       1
  4. 4           11229       1
  5.        
  6. shop_vnum   item_vnum   count
  7. 4           13209       1
  8. 4           12400       1
  9. 4           11229       1
  10.        
  11. CREATE VIEW items_view AS SELECT * FROM items ORDER BY item_vnum DESC;
  12.        
  13. insert into items (shop_vnum, item_vnum, `count`)
  14. values (4, 12400, 1);