MeanJoeGreen13
IS-IT--Management
- Jan 6, 2008
- 15
My current query:
table called demo
ptime column set as TEXT
data inserted to this column with DATE_ADD(LOCALTIME(),INTERVAL 420 minute)
und it's format looks like this: 2008-11-07 10:32:35
for that example:
xryear = 2007
xrstatus = 1
xruser = "232323232_pop.dr.tu"
xrmonth = 01
i need that the output will give me the numbers of day dates from the table demo by order asc
how can it be done with mysql syntax?
Code:
mySQL1="SELECT * FROM demo where tasks<>'' and cast(left(ptime,4) as unsigned) = " & xryear & " and status <=> " & xrstatus & " and subid <=> '" & xruser & "' and cast(substr(ptime,6,2) as unsigned)=" & xrmonth
table called demo
ptime column set as TEXT
data inserted to this column with DATE_ADD(LOCALTIME(),INTERVAL 420 minute)
und it's format looks like this: 2008-11-07 10:32:35
for that example:
xryear = 2007
xrstatus = 1
xruser = "232323232_pop.dr.tu"
xrmonth = 01
i need that the output will give me the numbers of day dates from the table demo by order asc
how can it be done with mysql syntax?