SELECT inside a SELECT

I often forget the exact syntax of things like this… So here’s an example… $query1 = 'SELECT * FROM `'.$dbName.'`.`users` WHERE email NOT IN (SELECT email FROM `'.$setupDBName.'`.`users`)'; Related posts:mysql_real_escape_string...

I often forget the exact syntax of things like this… So here’s an example…

$query1 = 'SELECT * FROM `'.$dbName.'`.`users` WHERE email NOT IN (SELECT email FROM `'.$setupDBName.'`.`users`)';

Related posts:

  1. mysql_real_escape_string
  2. Backup Database with PHP

This post has had 14 views

Tags: ,