Welcome to WebmasterWorld Guest from 54.226.45.241

Forum Moderators: open

Message Too Old, No Replies

Perform advanced searches in SELECT statement

     

ktsirig

4:23 pm on Sep 8, 2009 (gmt 0)

5+ Year Member



Hello all
I wanted to ask if there is a way of inserting some mathematics in an SQL select statement.
What I am interested in is to select all rows from a table where 56<ID<67 for example.

Thank you

ZydoSEO

8:32 pm on Sep 8, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



SELECT *
FROM mytable
WHERE ID > 56 AND ID < 67

You can put mathmatics in lots of parts of a SQL SELECT statement...

 

Featured Threads

Hot Threads This Week

Hot Threads This Month