mysql - Error 1064 ... near ':30) interval 1 week etc -


i have used following code on 1 site , trying replicate on another, above error.

this post on stackoverflow, search might, can't find original, apologies creating new question.

the various dates, week interval , limit derived form fields, user can generate required number of dates repeat pattern (e.g. 3 dates, 1 every week or 6 dates 1 every month).

the num tables has single field, 'i', rows 0-26

select date_add(2015-01-01, interval @num := @num + 1 week) start_date,  date_add(addtime(2015-01-01, 01:30 ), interval @num week) end_date,    num.* num num.i not null limit 3 

i'd grateful if point out glaringly obvious!

thanks chris


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -