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 |
Tags
- html
- tomcat
- File
- curl
- NetBeans
- MySQL
- 리눅스
- 안드로이드
- CentOS
- JSON
- Linux
- java
- 와일드카드
- javascript
- ajax
- DB
- error
- Spring
- 정규식
- input
- properties
- jquery
- php
- larravel
- laravel
- Android
- SeLinux
- 이클립스
- 톰캣
- junit
Archives
- Today
- Total
목록쿼리빌더 (1)
합쭈기 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