Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. domain_registrations
  2. id | attached_to_hoster
  3. 1 | null
  4. 2 | null
  5.  
  6. select * from `domain_registrations` where 'attached_to_hoster' != 1;
  7. select * from `domain_registrations` where `attached_to_hoster` <> 1;
  8.  
  9. $oDomainRegistrations = DomainRegistrations::where('attached_to_hoster', '<>', '1')->get();
  10.  
  11. select * from domain_registrations
  12. where attached_to_hoster != 1 and not attached_to_hoster is null;
  13. select * from domain_registrations
  14. where attached_to_hoster != 1 or attached_to_hoster is null;
  15.  
  16. DomainRegistrations::where('attached_to_hoster', '<>', '1')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement