🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #183518

Re: pytanie o operatory porównania

#183518
From: hubert depesz lubaczewski
Date: Mon, 20 Jul 2009 18:19
28 lines
1626 bytes
On 2009-07-20, Filip Rembiałkowski <plk.zuber@gmail.com> wrote:
> trzeba uważać z liczbami. w mysql sprawa jest śliska:
> mysql> select 123 > 'ala';
> +-------------+
>| 123 > 'ala' |
> +-------------+
>|           1 |
> +-------------+
> 1 row in set, 1 warning (0,00 sec)
>
> mysql> select  'ala' < 123;
> +-------------+
>| 'ala' < 123 |
> +-------------+
>|           1 |
> +-------------+
> 1 row in set, 1 warning (0,00 sec)
> (mysql 5.0.
> jak widać zwraca zupełnie sprzeczne wyniki dla pozornie takich samych
> porównań.

ekhem? gdzie to sprzeczność wyników?

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007
Technical Details
Message-ID: <h2pej6-qup.ln1@depesz.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!depesz.com!news
References: <h3khdp$niq$1@nemesis.news.neostrada.pl> <d6d28986-ca50-4540-9931-590f4b3dc58b@d32g2000yqh.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!depesz.com!news
From: hubert depesz lubaczewski <depesz@depesz.com>
Newsgroups: pl.comp.bazy-danych
Subject: Re: pytanie o operatory porównania
Date: Mon, 20 Jul 2009 20:19:29 +0200
Organization: depesz Software
Lines: 28
Message-ID: <h2pej6-qup.ln1@depesz.com>
References: <h3khdp$niq$1@nemesis.news.neostrada.pl> <d6d28986-ca50-4540-9931-590f4b3dc58b@d32g2000yqh.googlegroups.com>
Reply-To: depesz@depesz.com
NNTP-Posting-Host: depesz.com
Mime-Version: 1.0
X-Trace: news.onet.pl 1248116884 30213 78.46.78.198 (20 Jul 2009 19:08:04 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 20 Jul 2009 19:08:04 +0000 (UTC)
User-Agent: slrn/pre1.0.0-2 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit