Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql select where in

SELECT * FROM table_name WHERE country IN ('SPAIN', 'MEXICO');
Comment

SQL SELECT WHERE Clause

SELECT *
FROM Customers
WHERE last_name = 'Doe';
Comment

sql select where

SELECT * FROM table_name;
-- Sorting col1 ASCending then col2 DESCending
SELECT col1, col2 FROM table_name ORDER BY col1 ASC, col2 DESC;
-- Filter on col1
SELECT col1, col2 FROM table_name WHERE col1 = 'a value';
-- Containing 'searched'
SELECT col1, col2 FROM table_name WHERE col1 LIKE '%searched%';
-- All different values
SELECT DISTINCT col1 FROM table_name;
-- Simple sum
SELECT col1, sum(col2) FROM table_name GROUP BY col1;
Comment

sql where clause

SELECT column1, column2, ...                                                
FROM table_name
WHERE condition
Comment

PREVIOUS NEXT
Code Example
Sql :: having count oracle two columns 
Sql :: sql to array of objects 
Sql :: SQLITE_BUSY: database is locked 
Sql :: TSQL function split string 
Sql :: drop all triggers oracle 
Sql :: distinct in sql server 
Sql :: mysql on duplicate key ignore 
Sql :: truncate your answer to decimal places mysql 
Sql :: sql delete 
Sql :: sub query postgres 
Sql :: postgresql regex extract a word from string 
Sql :: how to define a save method in ruby for sqlite3 databases 
Sql :: postgre query date 
Sql :: mysql in 
Sql :: sql rename column in select query 
Sql :: sql order by with where 
Sql :: generate sql from specific migration ef core 
Sql :: sql output select 
Sql :: json not contains mysql 
Sql :: mysql alter table add column 
Sql :: best sql collation 
Sql :: oracle undo tablespace schema 
Sql :: alter table query in mysql 
Sql :: sql insert exemplo 
Sql :: dump multiple tables mysql 
Sql :: postgresql variable in query 
Sql :: sql or 
Sql :: insert multiple rows from another table sql 
Sql :: download database devilbox 
Sql :: select year from dual oracle 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =