mysql - SQL IN Operator With Date Range -
I am trying to select from table1 in Table1, where Table 2 has a specific date range, I have a few different questions have tried; Some of which I get syntax errors, and some where the date range is not working.
Currently:
Choose from Table 1 Where to select F (FT2) as SS Time. & Gt; '2013-01-01 00:00:00' and S. Time & lt; '2013-01-07 00:00:00' by order s.time What is the correct syntax for this type of statement? I see all the examples are:
select * from table 1 where in x (table2); I can not find anyone else in depth examples. Any suggestion is appreciated, if necessary, please leave a comment for more information.
< Div class = "post-text" itemprop = "text">
A WHERE section can be present only once in the query IN to use < Inside a SUBQUERY with code> SELECT , you must follow this method:
'1/1/2012' and '1/1 / 2013 ' From Table 1, column X should be same I type OneColumnOnly to TABLE2, or it's a INT like VARCHAR
Comments
Post a Comment