Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. mysql> create table meow (id int not null primary key);
  2. Query OK, 0 rows affected (0.07 sec)
  3.  
  4. mysql> insert into meow (id) values (1);
  5. Query OK, 1 row affected (0.00 sec)
  6.  
  7. mysql> update meow set id=(id+1) where id = 1;
  8. Query OK, 1 row affected (0.01 sec)
  9. Rows matched: 1 Changed: 1 Warnings: 0
  10.  
  11. mysql> select * from meow;
  12. +----+
  13. | id |
  14. +----+
  15. | 2 |
  16. +----+
  17. 1 row in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement