Skip to content

Instantly share code, notes, and snippets.

@dsturnbull
Created February 25, 2009 06:15
Show Gist options
  • Save dsturnbull/70048 to your computer and use it in GitHub Desktop.
Save dsturnbull/70048 to your computer and use it in GitHub Desktop.
mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)
mysql> CREATE TABLE a (a text);
Query OK, 0 rows affected (0.00 sec)
mysql> ROLLBACK;
Query OK, 0 rows affected (0.00 sec)
mysql> describe a;
+-------+------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------+------+-----+---------+-------+
| a | text | YES | | NULL | |
+-------+------+------+-----+---------+-------+
1 row in set (0.00 sec)
VS
testing=# BEGIN;
BEGIN
testing=# CREATE TABLE a (a text);
CREATE TABLE
testing=# ROLLBACK;
ROLLBACK
testing=# \d a
Did not find any relation named "a".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment