Jump to content

REPLACE NULL


dflow

Recommended Posts

That appears to be SQL Server style syntax.

 

 

Try:

 

UPDATE products SET RegionID = 0 WHERE RegionID IS NULL;

 

The quote identifier (because I can't remember what it's really called) is ` in MySQL.  It's [] in MSSQL.

 

 

Also, what error are you getting?

 

thanks it was indeed the []

Link to comment
https://forums.phpfreaks.com/topic/202054-replace-null/#findComment-1060316
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.