![]() |
VOOZH | about |
The SQL BETWEEN operator is used along with WHERE clause for providing a range of values. The values can be the numeric value, text value, and date. SQL BETWEEN operator is almost like SQL IN operators used in a sequential manner. The values are defined as part of the BETWEEN range are inclusive i.e. the values that are mentioned in the range are included at the start and end values. Letโs discuss in detail about the BETWEEN operator. As mentioned above BETWEEN operator can be used along with numeric value, text value, and date. We will discuss all the three in detail below.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
Java and Python Developer for 20+ years, Open Source Enthusiast, Founder of https://www.askpython.com/, https://www.linuxfordevices.com/, and JournalDev.com (acquired by DigitalOcean). Passionate about writing technical articles and sharing knowledge with others. Love Java, Python, Unix and related technologies. Follow my X @PankajWebDev
SELECT * FROM Orders WHERE OrderDate BETWEEN โ1996-07-01โ AND โ1996-07-31โ; SELECT * FROM Orders WHERE OrderDate BETWEEN #01/07/1996# AND #31/07/1996#; what is the differnece between them? i am using oracle 11g release 2 (SQL PLUS COMMAND) https://www.w3schools.com/sql/trysql.asp?filename=trysql\_select\_between\_date2 what if i write like this WHERE OrderDate BETWEEN #1996-07-01# AND #1996-07-31#; i am not getting what i want . i am getting all the records. plzz reply me in email.
- SAUMYOJIT DAS
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.