sasha85
11-13-2007, 02:55 PM
i got 2 tables in the first table "crmagents" all the usernames stored in column 'username' and 'online'
the seconds table "crminfo" got 2 columns 'agent'
*column 'agent' got names from the first table crmagents.
i need mysql\sql query that will update crminfo.agent=null where crmagents.online=null
mySQLde="UPDATE crminfo JOIN crmagents ON crminfo.agent = crmagents.username SET crminfo.Agent = NULL WHERE crmagents.online = null"
it is not working:(
the seconds table "crminfo" got 2 columns 'agent'
*column 'agent' got names from the first table crmagents.
i need mysql\sql query that will update crminfo.agent=null where crmagents.online=null
mySQLde="UPDATE crminfo JOIN crmagents ON crminfo.agent = crmagents.username SET crminfo.Agent = NULL WHERE crmagents.online = null"
it is not working:(