Note that there are some explanatory texts on larger screens.

plurals
  1. POmysql decimal query issue
    primarykey
    data
    text
    <p>First off I am running mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (x86_64) using readline 5.0</p> <p>Sorry for the formatting but I don't have the ability to copy it so I have to type it in.</p> <p>the two fields in question are the following</p> <pre><code>id int(11) startj1950 decimal(38,6) mysql&gt; select id,startj1950 from store where id = 32513; +------------------+ | id | startj1950 | +----------|----------------------| |32513 | 1912181654.500000 | ----------------------------------- mysql&gt; select id from store where startj1950=1912181654.500000; Empty set </code></pre> <p>So I figured I was messing up somehow in the copy so I would let mysql get the value for me.</p> <pre><code>mysql&gt; select id from store where startj1950=(select startj1950 from store where id=32513); Empty set &lt;br/&gt; </code></pre> <p>But it works for other results</p> <pre><code>mysql&gt; select id,startj1950 from store where id = 32513; +------------------+ | id | startj1950 | +----------|----------------------| |18675 | 1907365784.570000 | ----------------------------------- mysql&gt; select id from store where startj1950=1907365784.570000; +----------+ | id | +----------| |18675 | ------------ mysql&gt; select id from store where startj1950=(select startj1950 from store where id=18675);&lt;br/&gt; +----------+ | id | +----------| |18675 | ------------ </code></pre> <p>I figure I either have hit a mysql bug or I am misunderstanding some sort of concept. Thanks in advance for the help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload