Re: select returns no line
От | Attila Kevei |
---|---|
Тема | Re: select returns no line |
Дата | |
Msg-id | 980257292.3a6d8a0cad5aa@www.goodwill.hu обсуждение исходный текст |
Ответ на | Re: select returns no line (patrick.jacquot@anpe.fr) |
Список | pgsql-sql |
No, there's no space. The query (point 4. below) after the fix (point 3.) is the _same_ as the first (p.1.). In the first select there's no result but in the last select we get the right result. Attila Quoting patrick.jacquot@anpe.fr: 1. > > goodwill=>select * from users where user_login='test'; > > user_id|user_login|user_passwd|user_exp > > -------+----------+-----------+-------- > > (0 rows) > > 2. > > goodwill=> select * from users where user_id=4; > > user_id|user_login|user_passwd |user_exp > > -------+----------+-------------+-------- > > 4|test |0PDv7a2EESjZo| > > (1 row) > > 3. > > goodwill=> update users set user_login=user_login where user_id=4; > > UPDATE > > 1 > > 4. > > goodwill=>select * from users where user_login='test'; > > user_id|user_login|user_passwd |user_exp > > -------+----------+-------------+-------- > > 4|test |0PDv7a2EESjZo| > > (1 row) > > > > hello > are you sure the value of the user_id in that line is "test" and not > "test " > i.e it has not spurious spaces at the end of it ? > HTH > Patrick > -- x- kisix@swi.hu -x- attila.kevei@goodwill.hu -x- kisiksz@westel900.net -x
В списке pgsql-sql по дате отправления: