Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOCK TABLES items;
- START TRANSACTION;
- INSERT INTO items (name, label) VALUES ('foo', 'bar');
- UNLOCK TABLES;
- mysql_query('LOCK TABLES items');
- mysql_query("INSERT INTO items (name, label) VALUES ('foo', 'bar')");
- mysql_query('UNLOCK TABLES');
Add Comment
Please, Sign In to add comment