![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I want to update the nb_mail column with this query but the select query returns empty results in same case while i need 0 value. An idea please? Thanks you UPDATE users u SET nb_mail = nb_mail + (SELECT count(*) FROM event as e WHERE type='mail' AND u.login = e.login GROUP BY login) |
#3
| |||
| |||
|
|
Hello, I want to update the nb_mail column with this query but the select query returns empty results in same case while i need 0 value. An idea please? Thanks you UPDATE users u SET nb_mail = nb_mail + (SELECT count(*) FROM event as e WHERE type='mail' AND u.login = e.login GROUP BY login) |
![]() |
| Thread Tools | |
| Display Modes | |
| |