Skip to content
Loading
How to get all values null
  • Asma Khalid
    use below code from SQL direct i.e.
    1. SELECt *     
    2. FROM tm_user    
    3. WHERE userid IS NULL    
     This will return rows with only NULL user ID
  • Janak Sabhaya
    select * from tm_user where
    userid=0
    You always get Null data
  • Hi,

    Are you passing the value - @userid - from front-end?

     Then -
    If txtbox.text.Length <= 0 then
     @userid = '' or @userid = DBValue.Null or @userid = null
     
    If you need it from sql then try -
     
    select * from tm_user where len(userid) <= 0 OR userid is null or userid = ''
    --------