![](https://secure.gravatar.com/avatar/3bae033216f76dc4a8a87a0b5becb4dd.jpg?s=120&d=mm&r=g)
15 Wrz
2015
15 Wrz
'15
13:44
Witam c.addres to chyba pole string
UPDATE netdevices nd SET location = (SELECT c.address from customers c, nodes n WHERE nd.id http://nd.id = n.netdev AND c.id http://c.id = n.ownerid and c.address not like '' LIMIT 1)
lub
UPDATE netdevices nd SET location = (SELECT c.address from customers c, nodes n WHERE nd.id http://nd.id = n.netdev AND c.id http://c.id = n.ownerid and c.address not like ' ' LIMIT 1)
On 15.09.2015 13:30, Marcin wrote:
UPDATE netdevices nd SET location = (SELECT c.address from customers c, nodes n WHERE nd.id http://nd.id = n.netdev AND c.id http://c.id = n.ownerid and c.address IS NOT NULL LIMIT 1)