Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #number #id #data #table
ADD COMMENT
Topic
Name
6+8 =