Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21248

how to query to list range dates

$
0
0
This involve to table field to query a result but I would like to list in rows a result of sql query between two dates. Im using mysql. I been thinking awhile now, i cant have idea of what statement to use.

I tried select curdate() as mycurdate where curdate() between '2001-01-01' and '2001-12-31' but I got error statement error.

I have hoping to have result

|mycurdate|
2001-01-01
2001-01-02
2001-01-03
.
.
.
2001-12-31

Viewing all articles
Browse latest Browse all 21248

Trending Articles