matching a timestamp field - Mailing list pgsql-sql
From | BACHELART PIERRE (CIS/SCC) |
---|---|
Subject | matching a timestamp field |
Date | |
Msg-id | 3C56CD7AD881324BB4C60AA5CE2C5CC11720019A@A04059.BGC.NET Whole thread Raw |
Responses |
Re: matching a timestamp field
Re: matching a timestamp field Re: matching a timestamp field |
List | pgsql-sql |
<div class="WordSection1"><p class="MsoNormal">Hello,<p class="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal">Whyis my sql below accepted in 8.1.19 and refused in 8.4.9 ???<p class="MsoNormal">Is there something Ihave missed in the doc ?<p class="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal">Welcome to psql 8.1.19, the PostgreSQLinteractive terminal.<p class="MsoNormal">Type: \copyright for distribution terms<p class="MsoNormal"> \hfor help with SQL commands<p class="MsoNormal"> \? for help with psql commands<p class="MsoNormal"> \g or terminatewith semicolon to execute query<p class="MsoNormal"> \q to quit<p class="MsoNormal"> <p class="MsoNormal">ansroc=#select * from s12hwdb where record ~'2012-09-20' limit 5;<p class="MsoNormal"> host | exchange| rit | board | var | lceid | pceid | mnem | eq | rtyp | rv | cetype | record | type | zone<p class="MsoNormal">----------+----------+---------+----------+------+-------+-------+-------+----+------+----+----------+---------------------+------+------<p class="MsoNormal">and5032t| and5032t | 01a0301 | 21122994 | ebjb | 0000 | 000c | con3a | e | ef03 | b1 | plce#xfx | 2012-09-2011:50:02 | H | a1<p class="MsoNormal">and5032t | and5032t | 01a0307 | 21406298 | aaca | 0000 | 000c | mmca | e | ef03 | b1 | plce#xfx | 2012-09-20 11:50:02 | H | a1<p class="MsoNormal">and5032t | and5032t | 01a0309 | 21406298| aaca | 0000 | 000c | mmca | s | ef03 | b1 | plce#xfx | 2012-09-20 11:50:02 | H | a1<p class="MsoNormal">and5032t| and5032t | 01a0311 | 21407930 | aaaa | 0000 | 000c | mmcb | e | ef03 | b1 | plce#xfx | 2012-09-2011:50:02 | H | a1<p class="MsoNormal">and5032t | and5032t | 01a0313 | 21407932 | abca | 0000 | 000c | mcud | e | ef03 | b1 | plce#xfx | 2012-09-20 11:50:02 | H | a1<p class="MsoNormal">(5 rows)<p class="MsoNormal"> <p class="MsoNormal">ansroc=#\q<p class="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal">psql (8.4.9)<pclass="MsoNormal">Type "help" for help.<p class="MsoNormal">ansroc=# select * from s12hwdb where record ~'2012-09-20'limit 5;<p class="MsoNormal">ERROR: operator does not exist: timestamp without time zone ~ unknown<p class="MsoNormal">LINE1: select * from s12hwdb where record ~'2012-09-20' limit 5;<p class="MsoNormal"> ^<p class="MsoNormal">HINT: No operator matches the given nameand argument type(s). You might need to add explicit type casts.<p class="MsoNormal">ansroc=#<p class="MsoNormal"> <pclass="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal"><span style=""> </span><p class="MsoNormal"><spanstyle="">Pierre.</span><p class="MsoNormal"><span style="">+32 471 68 12 23</span><p class="MsoNormal"> </div><br/><hr /><font color="Blue" face="Arial" size="2"><br /> ***** Disclaimer *****<br /> http://www.belgacom.be/maildisclaimer<br/></font>