I can't figure out how to pass a date to my sql query in matlab. When I do it "statically" it workds perfectly well:
myquery1 = ['Select DeliveryMonth, Value '...
' FROM [mydatabase] '...
' where idcurve = 33 ' ...
' and deliverymonth <''20121130'' '...
' order by DeliveryMonth ']
But what I want is this:
breakdate = input('Enter a breakdate as 20121130: ', 's')
myquery1 = ['Select DeliveryMonth, Value '...
' FROM [mydatabase] '...
' where idcurve = 33 ' ...
' and deliverymonth < ''breakdate'' '...
' order by DeliveryMonth ']
regards A