Open main menu

Pathology Education Instructional Resource β

Changes

This Is Your Brain On Informatics: MariaDB

12 bytes added, 05:39, 23 October 2013
no edit summary
<p>
The following will create a temporary table that will order [var1], hold [var2] and also create a column with an a counter variable named "id".
<br /><br />
A: CREATE TEMPORARY TABLE `rank` (id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY) SELECT [var1],[var2] FROM `test` WHERE [var3] = "string" AND [var1] <10000000 ORDER BY [var1];
347
edits