Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. `CREATE TEMPORARY TABLE test (id varchar(50), name varchar(50));
  2. INSERT INTO test (id, name) VALUES (1, 'LF/2019/0001');
  3. SELECT name FROM test;
  4. UPDATE test SET name = (SELECT name FROM test ORDER BY id DESC) + 1 WHERE id = 1;`
  5.  
  6. Error show :
  7.  
  8. MySQL said: Documentation
  9.  
  10. #1137 - Can't reopen table: 'test'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement