
SQL
SPEC_Near
当你的才华还撑不起你的野心的时候,你就应该静下心来学习;当你的能力还驾驭不了你的目标时,就应该沉下心来历练;梦想,不是浮躁,而是沉淀和积累,只有拼出来的美丽,没有等出来的辉煌。
展开
-
MySQL遇到check the manual that corresponds to your MySQL server version for the right syntax错误
用MySQL新建了一个Order表,插入了一条数据。总是显示 You have an error in your SQL syntax; check the manual thatcorresponds to your MySQL server version for the right syntax to use near 'order' at line 1转载 2015-01-30 12:18:30 · 1238 阅读 · 1 评论 -
SQL中 and or优先级问题
刚刚在项目中遇到这样一个问题,SQL语句如下:select * from LOAN_BACK_LIBRARY where LIBRARY_ID=1 or LIB_ID=1 and STATUS=3我想要的结果的条件是:1. LIBRARY_ID=1 或者 LIB_ID=1 2.STATUS=3转载 2015-02-03 09:47:06 · 358 阅读 · 0 评论 -
left join on 和where条件的放置
select * fromtd left join (select case_id as sup_case_id , count(*) supervise_number from td_kcdc_case_sup_info group by case_id ) sup on sup.sup_case_id = td.case_id where转载 2015-03-03 09:24:24 · 155 阅读 · 0 评论