SQL UPDATE Query - Basic stuff but can't see what's wrong? -



SQL UPDATE Query - Basic stuff but can't see what's wrong? -

i'm trying update command sql have never used it. have command this:

update 'assets' set 'sku' = "another", 'quantity' = "3", 'description' = "another thing", 'value' = "2100", 'location' = "acheroon", 'owner' = "fergus", 'image' = "nope", 'notes' = "" 'index' = "2"

i have tried running both through php layer , straight database. what's up?

replace ' ` , " '

try this:

update `assets` set `sku` = 'another', `quantity` = '3', `description` = 'another thing', `value` = '2100', `location` = 'acheroon', `owner` = 'fergus', `image` = 'nope', `notes` = '' `index` = '2'

or

update assets set sku = 'another', quantity = '3', description = 'another thing', value = '2100', location = 'acheroon', owner = 'fergus', image = 'nope', notes = '' `index` = '2'

sql

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -