Search
 
SCRIPT & CODE EXAMPLE
 

SQL

select columns table mysql

SELECT `COLUMN_NAME` 
FROM `INFORMATION_SCHEMA`.`COLUMNS` 
WHERE `TABLE_SCHEMA`='yourdatabasename' 
    AND `TABLE_NAME`='yourtablename';
Comment

select from column mysql

/*
* Ex:- Selecting name from customer table
*/

SELECT name FROM customer;

/*
* Ex:- Selecting customer i.d and name from customer table
*/

SELECT id, name FROM customer;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql server convert string to date 
Sql :: sql server select where date 
Sql :: check database status oracle 
Sql :: mysql tables max count 
Sql :: mysql pretty date format 
Sql :: size of all tables in a schema oracle 
Sql :: how to get mysql db size 
Sql :: mysql create timestamp column 
Sql :: safe mysql 
Sql :: tsql random number 
Sql :: get last week data in mysql 
Sql :: date less than current date sql 
Sql :: ajouter une clé etrangere mysql 
Sql :: get row affected mysql 
Sql :: convert date to datetime sql 
Sql :: how to use a database to see tables mysql 
Sql :: select from describe sql 
Sql :: incorrect string value: mysql 
Sql :: oracle plsql sleep 
Sql :: set nocount on sql 
Sql :: psql connect as user with password 
Sql :: mysql install with docker 
Sql :: oracle drop index if exists 
Sql :: sql show all users 
Sql :: copy postgres table from one schema into another 
Sql :: running percentage of total postgres 
Sql :: convert sql to relational algebra 
Sql :: mysql subdate 
Sql :: trim sql oracle 
Sql :: mysql change password 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =