今天 对 Ralasafe 设计器里的 where 条件进行 学习
以下为一些小记录.
错误的设计器设计
[img]http://dl.iteye.com/upload/attachment/557685/6f1d5ed8-e74e-3f80-9319-2417964fa98a.jpg[/img]
出现了 错误的 sql
[img]http://dl.iteye.com/upload/attachment/557687/d43e5544-cea3-3413-870d-d8236d73caec.jpg[/img]
在得到 群友 乐天 同学的帮助后
乐天提示: 应该在条件里 先 and 再 or
(不知道 在sql里是否 就有这个 规定....,太久没写纯净的sql了,就算写也写得很随意的那种)
修改为:
正确的设计
[img]http://dl.iteye.com/upload/attachment/557693/3435c370-6103-38ac-9f2d-71f9f3259983.jpg[/img]
正确的 SQL
[img]http://dl.iteye.com/upload/attachment/557695/3aba1574-92dd-3ceb-88c6-5dbac06c9c90.jpg[/img]
以下为一些小记录.
错误的设计器设计
[img]http://dl.iteye.com/upload/attachment/557685/6f1d5ed8-e74e-3f80-9319-2417964fa98a.jpg[/img]
出现了 错误的 sql
[img]http://dl.iteye.com/upload/attachment/557687/d43e5544-cea3-3413-870d-d8236d73caec.jpg[/img]
在得到 群友 乐天 同学的帮助后
乐天提示: 应该在条件里 先 and 再 or
(不知道 在sql里是否 就有这个 规定....,太久没写纯净的sql了,就算写也写得很随意的那种)
修改为:
正确的设计
[img]http://dl.iteye.com/upload/attachment/557693/3435c370-6103-38ac-9f2d-71f9f3259983.jpg[/img]
正确的 SQL
[img]http://dl.iteye.com/upload/attachment/557695/3aba1574-92dd-3ceb-88c6-5dbac06c9c90.jpg[/img]