Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Perform advanced searches in SELECT statement



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

10+ 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


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

WebmasterWorld Senior Member 5+ Year Member

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