close[x]


MySQL

MySQL-Home MySQL-Environment setup MySQL- Workbench MySQL-Basic syntax MySQL-Operator MySQL-Data type MySQL-Comments MySQL-Create DB MySQL-Drop DB MySQL-Select DB MySQL-Create Table MySQL-Drop table MySQL-Truncate MySQL-Primary Key MySQL-Foreign Key MySQL-Null MySQL-Increment MySQL-Having MySQL-Top MySQL-Insert Statement MySQL-Select Statement MySQL-Alter Statement MySQL-Where MySQL-And & Or MySQL-Default values MySQL-Exists MySQL-Order by MySQL-View MySQL-Update Statement MySQL-Delete Statement MySQL-Like MySQL-Sort MySQL-Limit MySQL-Min MySQL-Max MySQL-Group MySQL-In MySQL-Between MySQL-Union MySQL-Count MySQL-Average MySQL-Sum MySQL-Date & Time MySQL-Import MySQL-Export MySQL-Index MySQL-Temporary MySQL-Join MySQL-Full Join MySQL-Inner Join MySQL-Left Join MySQL-Right Join MySQL-Store Procedure MySQL-Injection MySQL-PHP connection



learncodehere.com



MySQL - Syntax

Before you start writing your first MySQL program, you’ve got to learn the basics syntax.

MySQL basic syntax help you for your MySQL career.

Here, we are providing all the basic MySQL syntax.

  • MySQL is not case sensitive,select is the same as SELECT
  • MySQL statements are placed a single MySQL statement on one or multiple text lines.
  • MySQL statements are started with any of the MySQL commands/keywords like SELECT, INSERT, UPDATE, DELETE, ALTER, DROP etc. and the statement ends with a semicolon (;)
  • Semicolon is used to separate MySQL statements.

  • Command Description
    CREATE Creates a new table, a view of a table, or other object in the database.
    ALTER Modifies an existing database object, such as a table.
    DROP Deletes an entire table, a view of a table or other objects in the database.
    SELECT Retrieves certain records from one or more tables.
    INSERT Creates a record.
    UPDATE Modifies records.
    DELETE Deletes records.
    GRANT Gives a privilege to user.
    REVOKE Takes back privileges granted from user.