Skip to main content

Between error query

Comments

2 comments

  • vanessa
    Your query is not syntactically correct: SELECT `idsala`, `idtempoInicio`, `idTempoFim`, `data` FROM `req_material_reserva` WHERE `idsala` = 3 AND `idtempoInicio` BETWEEN = 12 AND `idTempoFim` = 12 AND `data` = "2014-05-05"
    When you use BETWEEN, you're literally saying "between two values". So it should be written as: BETWEEN X and X
    You can find more info on this here: [url=http://www.tutorialspoint.com/mysql/mysql-between-clause.htm]MySQL BETWEEN Clause Please also consider asking your question on the MySQL forums, which is a more appropriate venue for this sort of issue.
    0
  • cPanelMichael
    Hello :) Yes, as Vanessa mentioned, you will likely find more help on this topic on a forum where discussions of MySQL development/integration occurs. As it relates to MySQL, the forums here are more suited towards helping with the assistance/configuration/troubleshooting of the MySQL server, as opposed to MySQL scripting itself. Thank you.
    0

Please sign in to leave a comment.