Search
 
SCRIPT & CODE EXAMPLE
 

SQL

select even number id data from table

Sql Server we can use %

select * from orders where ID % 2 = 0;

This can be used in both Mysql and oracle. It is more affection to use mod function that %.

select * from orders where mod(ID,2) = 0
Comment

PREVIOUS NEXT
Code Example
Sql :: dependent on column 
Sql :: "Edad en Oracle" 
Sql :: select A from B join C as D using E where F match G order by H desc 
Sql :: oracle factorial 
Sql :: SQL Cut part string 
Sql :: datatype for phone number in sql 
Sql :: how to find lowest salary by departments ? 
Sql :: how to get button for every record from mysql 
Sql :: postgres insert knex 
Sql :: ora 00001 in oracle 
Sql :: sql server in linux 
Sql :: mysql faster insert 
Sql :: how to filter in sql 
Sql :: how to run sql query in mysql workbench 
Sql :: Get the User Name and Domain Name from an Email Address 
Sql :: finding leap year in sql 
Sql :: add 10 to all numbers in a column sql 
Sql :: find employee with max salary sql 
Sql :: sql server isnull function nor working count 
Csharp :: how to make mouse invisible unity 
Csharp :: c# app path 
Csharp :: how to convert string to guid c# 
Csharp :: unity get all by tag 
Csharp :: c# get file size in bytes 
Csharp :: kotlin random number 
Csharp :: c# serialize json 
Csharp :: c# check if string is empty 
Csharp :: how to get an child of an gameobject 
Csharp :: how to make a method wait in unity 
Csharp :: unity get current scene 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =