🔒 Closed Question re: sql two "or"

Status
Not open for further replies.

Racer_X

Eternal Poster
Hi po

Ask ko lang po paano po hihiwalay yung or or sa sql?
Dalawa or po kasi mag kakadikit

Col1=' ' or is null or Col2=' ' or is null

Salamat po
 
(Col1='' || is null) || (Col2= || is null)
mali po ang syntax pero ganyan po ba yung logic?
 
OR po ginagamit sa sql
Ayaw po kasi nito gumana

SELECT * from tablename where (col1=' ' or is null) or (col2=' ' or is null)

Eto pp yung ginawa ku pero ayaw po gumana



SELECT * from tablename where (col1=' ' or is null) or (col2=' ' or is null)
 
Ayaw po kasi nito gumana

SELECT * from tablename where (col1=' ' or is null) or (col2=' ' or is null)

Eto pp yung ginawa ku pero ayaw po gumana



SELECT * from tablename where (col1=' ' or is null) or (col2=' ' or is null)
remove mo po yung 'is'


SELECT * from tablename where col1=' ' or null or col2=' ' or null
 
Status
Not open for further replies.

About this Thread

  • 10
    Replies
  • 596
    Views
  • 5
    Participants
Last reply from:
vhin le

Trending Topics

Online now

Members online
811
Guests online
2,925
Total visitors
3,736

Forum statistics

Threads
2,331,942
Posts
29,261,327
Members
1,147,909
Latest member
agboy
Back
Top