🔒 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
 
1659602033313.png

Eto po, gumana yung ganito
 
Status
Not open for further replies.

Similar threads

About this Thread

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

Online now

Members online
826
Guests online
646
Total visitors
1,472

Forum statistics

Threads
2,276,943
Posts
28,973,242
Members
1,229,652
Latest member
ichan016
Back
Top