Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Select * from tablename
- where display = 1 or display = 2 and content like "%hello world%" or tags like "%hello world%" or title = "%hello world%"
- (display = 1 or display = 2) and (content like "%hello world%" or tags like "%hello world%" or title = "%hello world%")
- ((display = 1 or display = 2) and (content like "%hello world%")) or (tags like "%hello world%" or title = "%hello world%")
- INTERVAL
- BINARY, COLLATE
- !
- - (unary minus), ~ (unary bit inversion)
- ^
- *, /, DIV, %, MOD
- -, +
- <<, >>
- &
- |
- = (comparison), <=>, >=, >, <=, <, <>, !=, IS, LIKE, REGEXP, IN
- BETWEEN, CASE, WHEN, THEN, ELSE
- NOT
- &&, AND
- XOR
- ||, OR
- = (assignment), :=
- Select
- *
- from tablename
- where
- display = 1
- or display = 2
- and content like "%hello world%"
- or tags like "%hello world%"
- or title = "%hello world%"
- Select
- *
- from tablename
- where
- (display = 1)
- or (
- (display = 2)
- and (content like "%hello world%")
- )
- or (tags like "%hello world%")
- or (title = "%hello world%")
- Select
- *
- from tablename
- where
- (
- (display = 1)
- or (display = 2)
- ) and (
- (content like "%hello world%")
- or (tags like "%hello world%")
- or (title like "%hello world%")
- )
- select * from tablename
- where (display = 1 or display = 2)
- and (content like "%hello world%"
- or tags like "%hello world%"
- or title = "%hello world%")
- SELECT * FROM tableName
- WHERE display IN (1,2)
- AND (content LIKE "%hello world%"
- OR tags LIKE "%hello world%"
- OR title LIKE "%hello world%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement