Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Android
- php
- CentOS
- NetBeans
- laravel
- curl
- error
- SeLinux
- 톰캣
- MySQL
- File
- JSON
- jquery
- javascript
- 와일드카드
- DB
- junit
- properties
- input
- tomcat
- ajax
- java
- 리눅스
- larravel
- html
- 안드로이드
- Linux
- 이클립스
- 정규식
- Spring
Archives
- Today
- Total
목록larravel (2)
합쭈기 programming
[Laravel] and 절에 or 넣을때
where('code','=','p_')->orWhere('sub_code','=','e_')를 하면 and code = 'p_' or sub_code = 'e_' 이런식에 쿼리문이 되고 where(function($query){ $query->where('code', '=', 'p_') ->orWhere('sub_code', '=', 'e_'); });이렇게 하면 and (code = 'p_' or sub_code = 'e_') 이런 쿼리문이 된다.
Dev story
2015. 12. 8. 11:11