Changes

Jump to: navigation, search

This Is Your Brain On Informatics: MariaDB

3 bytes added, 02:12, 25 October 2013
no edit summary
| AS ''var'' || || Sets an output to a variable
|-
| CREATE TABLE `[table]` AUTO_INCREMENT || Creates || Automatically adds +1 to an entry for a table of the given name with the properly input variable (see below)column for each successive entry
|-
| FROM AVG() || || Denotes which table SELECT pulls Gives an average of the columns from (e.g. SELECT [col1],[col2] FROM `''table''`values in the indicated column
|-
| BIGINT || || 64-bit integer
|
| INT || || 32-bit integer
|-
| UNSIGNED CHAR || || only Assigns a character variable (allows positive integers or float values, always assigned after BIGINT or INT valueONLY 1 character)
|-
| AUTO_INCREMENT CREATE TABLE `''table''` || || Automatically adds +1 to an entry for Creates a column for each successive entrytable of the given name with the properly input variable (see below)
|-
| PRIMARY KEY CREATE TEMPORARY TABLE `[table]` || || Indicates which variable will differentiate each data entryCreates a temporary table of the given name
|-
| VARCHAR(#) DATE || || Assigns a character array date variable of length #the form 00-00-0000
|-
| CHAR FROM || || Assigns a character variable Denotes which table SELECT pulls the columns from (allows ONLY 1 character)e.g. SELECT [col1],[col2] FROM `''table''`
|-
| DATE INSERT || INSERT INTO ''table_name''<br /><br />VALUES (''value1,value2,value3,...'');<br /><br />INSERT INTO ''table_name'' (''column1,column2,column3,...'')<br /><br />VALUES (''value1,value2,value3,...''); -- specifies the columns the values go into || Assigns a date variable of Used with INTO to insert new data entries into the form 00-00-0000specified columns
|-
| AVG() INT || || Gives an average of the values in the indicated column32-bit integer
|-
| MAX() || || Gives the maximum of the values in the indicated columnINTO |-| MINSELECT * or ''column_name(s) ''<br />INTO ''newtable'' [IN ''externaldb'']<br />FROM ''table1'';|| || Gives the minimum of the values in the indicated columnUsed with SELECT command to copy ''column_names'' from ''table1'' into ''newtable''
|-
| LIMIT # || || Limits to the top # number of entries (not necessarily by rank)
|-
| CREATE TEMPORARY TABLE `[table]` MAX() || || Creates a temporary table Gives the maximum of the given namevalues in the indicated column
|-
| INSERT MIN() || || INSERT INTO ''table_name''<br /><br />VALUES (''value1,value2,value3,...'');<br /><br />INSERT INTO ''table_name'' (''column1,column2,column3,...'')<br /><br />VALUES (''value1,value2,value3,...''); -- specifies Gives the columns minimum of the values go into || Used with INTO to insert new data entries into in the specified columnsindicated column
|-
| INTO PRIMARY KEY || SELECT * or ''column_name(s)''<br />INTO ''newtable'' [IN ''externaldb'']<br />FROM ''table1'';|| Used with SELECT command to copy ''column_names'' from ''table1'' into ''newtable''Indicates which variable will differentiate each data entry
|-
| SELECT || || Selects columns from a database for analysis
|-
| UNSIGNED || || only allows positive integers or float values, always assigned after BIGINT or INT value
|-
| UPDATE || UPDATE ''table_name''<br />SET ''column1=value1,column2=value2,...''<br />WHERE ''some_column''=''some_value;'' || Changes ''column1'' to ''value1'' based on the WHERE statement (use something unique to update only one row)
|-
| USE ''database'' || || Selects database for manipulation and analysis
|-
| VARCHAR(#) || || Assigns a character array variable of length #
|-
| WHERE || || Limits the available values SELECT can pull from each column based on a logical statement (e.g. WHERE ''col1'' < 10)
347
edits

Navigation menu