Skip to content

Coder Tutorial

Menu
  • Home
  • HTML
  • CSS
  • PHP
  • SQL
  • MySQL
  • JS
  • PL/SQL
  • Python
  • Java
  • Oracle
Home
MySQL
MySQL Select

MySQL Select

MySQL Select

MySQL select syntax and examples.

MySQL Select syntax

SELECT * FROM table_name;

SELECT col1, col2 FROM table_name;

SELECT col1, col2 FROM table_name WHERE condition;

Table test

ID NAME
1 abc
2 def
3 ghi
4 jkl

Select example

SELECT * FROM test WHERE id=1;

Query Result

ID NAME
1 abc

Tutorials

  • MySQL Tutorial
  • Database
  • Data Types
  • Insert
  • Update
  • Delete
  • Select
  • Clauses
  • Where
  • AND
  • OR
  • IN
  • Between
  • Order By
  • Limit
  • Flow Control Statements
  • CASE
  • IF
  • Iterate
  • Leave
  • Loop
  • Repeat
  • Return
  • While
  • Functions and Operators
  • Table
  • View
  • Temporary Table
  • Triggers
  • Procedure
  • Function
  • Indexes
  • Transactions
  • Create trigger
  • Create table
  • Drop table
  • Add column
  • Drop column
  • Rename column
  • Add primary key
  • Add constraint foreign key
  • Drop foreign key
  • Add index
  • Drop index

Recent Posts

  • Java Polymorphism
  • Java Encapsulation
  • Java Abstraction
  • PostgreSQL ERROR: cannot begin/end transactions in PL/pgSQL
  • PostgreSQL Column must appear in the GROUP BY clause
  • PostgreSQL Column specified more than once
  • PostgreSQL Create database, Alter database examples
  • PostgreSQL Create schema syntax, Alter schema
  • PostgreSQL Create database user, alter and drop username
  • PostgreSQL Alter table name. Modify column name
Coder Tutorial Copyright © 2025. | Privacy Policy
Back to Top ↑
x