Skip to content

Instantly share code, notes, and snippets.

@rolandshoemaker
Created April 7, 2016 21:00
Show Gist options
  • Save rolandshoemaker/236055902509383b8c873dda8a5c1da8 to your computer and use it in GitHub Desktop.
Save rolandshoemaker/236055902509383b8c873dda8a5c1da8 to your computer and use it in GitHub Desktop.
MariaDB [testing]> CREATE TABLE `new_table` (`testing` varchar(255) NOT NULL, `inserted` datetime NOT NULL,PRIMARY KEY (`testing`)) ENGINE=InnoDB;
Query OK, 0 rows affected (0.02 sec)
MariaDB [testing]> INSERT INTO new_table (`testing`, `inserted`) VALUES('e', NOW());
Query OK, 1 row affected (0.00 sec)
MariaDB [testing]> INSERT INTO new_table (`testing`, `inserted`) VALUES('a', NOW());
Query OK, 1 row affected (0.01 sec)
MariaDB [testing]> INSERT INTO new_table (`testing`, `inserted`) VALUES('d', NOW());
Query OK, 1 row affected (0.00 sec)
MariaDB [testing]> INSERT INTO new_table (`testing`, `inserted`) VALUES('b', NOW());
Query OK, 1 row affected (0.00 sec)
MariaDB [testing]> INSERT INTO new_table (`testing`, `inserted`) VALUES('c', NOW());
Query OK, 1 row affected (0.01 sec)
MariaDB [testing]> SELECT * FROM new_table;
+---------+---------------------+
| testing | inserted |
+---------+---------------------+
| a | 2016-04-07 13:58:26 |
| b | 2016-04-07 13:58:32 |
| c | 2016-04-07 13:58:33 |
| d | 2016-04-07 13:58:30 |
| e | 2016-04-07 13:58:23 |
+---------+---------------------+
5 rows in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment