<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: select 1.x from t1</title>
	<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Sun, 07 Sep 2008 07:25:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Σωκράτης</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5802</link>
		<pubDate>Fri, 18 Jan 2008 07:33:17 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5802</guid>
					<description>Laurent,

thanks for that great link !

Σωκράτης</description>
		<content:encoded><![CDATA[<p>Laurent,</p>
<p>thanks for that great link !</p>
<p>Σωκράτης
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5801</link>
		<pubDate>Fri, 18 Jan 2008 07:15:10 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5801</guid>
					<description>I wrote about no space query before :
&lt;a href="http://laurentschneider.com/wordpress/2007/08/selectfromempwherescottenameanddeptno20.html" rel="nofollow"&gt;
select*from"EMP"where'SCOTT'="ENAME"and"DEPTNO"=20;&lt;/a&gt;

My opinion is still that spaces helps readability. Personaly I am quite greedy with spaces, so I would not write COS ( 0 )  but COS(0). 

About wasting your time, I am a big fan of solving &lt;a href="http://projecteuler.net" rel="nofollow"&gt;math problems&lt;/a&gt; with SQL 8-)</description>
		<content:encoded><![CDATA[<p>I wrote about no space query before :<br />
<a href="http://laurentschneider.com/wordpress/2007/08/selectfromempwherescottenameanddeptno20.html" rel="nofollow"><br />
select*from&#8221;EMP&#8221;where&#8217;SCOTT&#8217;=&#8221;ENAME&#8221;and&#8221;DEPTNO&#8221;=20;</a></p>
<p>My opinion is still that spaces helps readability. Personaly I am quite greedy with spaces, so I would not write COS ( 0 )  but COS(0). </p>
<p>About wasting your time, I am a big fan of solving <a href="http://projecteuler.net" rel="nofollow">math problems</a> with SQL <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Σωκράτης</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5797</link>
		<pubDate>Thu, 17 Jan 2008 21:14:38 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5797</guid>
					<description>Come on, Mikito Harakiri, wasting our time is not only a side effect but the *sense* of dealing with SQL, programming languages and all the rest, isn't t ?</description>
		<content:encoded><![CDATA[<p>Come on, Mikito Harakiri, wasting our time is not only a side effect but the *sense* of dealing with SQL, programming languages and all the rest, isn&#8217;t t ?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Vadim Tropashko</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5795</link>
		<pubDate>Thu, 17 Jan 2008 19:52:23 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5795</guid>
					<description>Sure there is an entertaining (and time consuming) explanation for each and every oddity, but how many developers really write a query without whitespace? I'm not aware of any modern programming language where whitespace is not a fundamental part of the syntax. Ditto for identifiers in quotes. Those should be deprecated (although was there a case when anything has been deprecated in SQL?)</description>
		<content:encoded><![CDATA[<p>Sure there is an entertaining (and time consuming) explanation for each and every oddity, but how many developers really write a query without whitespace? I&#8217;m not aware of any modern programming language where whitespace is not a fundamental part of the syntax. Ditto for identifiers in quotes. Those should be deprecated (although was there a case when anything has been deprecated in SQL?)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ed Rusu</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5791</link>
		<pubDate>Wed, 16 Jan 2008 21:18:59 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5791</guid>
					<description>Maybe we should have a separate discussion on sysdate@! thing ;)
It was found when sysdate was used with db link.
I.e. SQL&#62; select sysdate from dual@db_link;
produces the following SQL in remote database:
SELECT SYSDATE@! FROM "DUAL" "A1"

Ed</description>
		<content:encoded><![CDATA[<p>Maybe we should have a separate discussion on <a href="mailto:sysdate@!">sysdate@!</a> thing <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
It was found when sysdate was used with db link.<br />
I.e. SQL&gt; select sysdate from <a href="mailto:dual@db_link;">dual@db_link;</a><br />
produces the following SQL in remote database:<br />
SELECT <a href="mailto:SYSDATE@!">SYSDATE@!</a> FROM &#8220;DUAL&#8221; &#8220;A1&#8243;</p>
<p>Ed
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stefan P Knecht</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5786</link>
		<pubDate>Wed, 16 Jan 2008 14:03:23 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5786</guid>
					<description>Another little oddity. If you're setting event 10053 and run  

select sysdate@! from dual;

All you get is an empty tracefile (on 10.2.0.3) -- seems the optimizer is choking on it ?

Perhaps the "!" character has a special meaning (other than executing commands in your shell on *nix systems) ?

Stefan</description>
		<content:encoded><![CDATA[<p>Another little oddity. If you&#8217;re setting event 10053 and run  </p>
<p>select <a href="mailto:sysdate@!">sysdate@!</a> from dual;</p>
<p>All you get is an empty tracefile (on 10.2.0.3) &#8212; seems the optimizer is choking on it ?</p>
<p>Perhaps the &#8220;!&#8221; character has a special meaning (other than executing commands in your shell on *nix systems) ?</p>
<p>Stefan
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Marco Gralike</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5782</link>
		<pubDate>Tue, 15 Jan 2008 23:25:52 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5782</guid>
					<description>Currently I don't have a database at hand, so I can really test it, but regarding:

select 1.dummy from “DUAL”"1″;

Counting that the use of double quotas is a standard thing while for instance looking into the syntax of a dumpfile, generated by "exp". I would expect that "1" is regarded as a database link alias or such. With SQL*Net V1 this was the place to use the connection descriptor starting with the protocol (t for tcpip, d for dec, n for names - if I remember correctly). Therefore maybe the ORA-03001: unimplemented feature. 

Laurent are you sure you can't use double quotes in a table name? Didn't we wander these paths before...?</description>
		<content:encoded><![CDATA[<p>Currently I don&#8217;t have a database at hand, so I can really test it, but regarding:</p>
<p>select 1.dummy from “DUAL”&#8221;1″;</p>
<p>Counting that the use of double quotas is a standard thing while for instance looking into the syntax of a dumpfile, generated by &#8220;exp&#8221;. I would expect that &#8220;1&#8243; is regarded as a database link alias or such. With SQL*Net V1 this was the place to use the connection descriptor starting with the protocol (t for tcpip, d for dec, n for names - if I remember correctly). Therefore maybe the ORA-03001: unimplemented feature. </p>
<p>Laurent are you sure you can&#8217;t use double quotes in a table name? Didn&#8217;t we wander these paths before&#8230;?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Claudia Zeiler</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5781</link>
		<pubDate>Tue, 15 Jan 2008 17:13:29 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5781</guid>
					<description>For what it's worth

SQL&#62; select sysdate from dual;

SYSDATE
---------
15-JAN-08

SQL&#62; select sysdate@ from dual;
select sysdate@ from dual
              *
ERROR at line 1:
ORA-00923: FROM keyword not found where expected


SQL&#62; select sysdate@! from dual;

SYSDATE@!
---------
15-JAN-08

SQL&#62; select sysdate@1 from dual;
select sysdate@1 from dual
              *
ERROR at line 1:
ORA-00923: FROM keyword not found where expected


And I don't understand anything any more!</description>
		<content:encoded><![CDATA[<p>For what it&#8217;s worth</p>
<p>SQL&gt; select sysdate from dual;</p>
<p>SYSDATE<br />
&#8212;&#8212;&#8212;<br />
15-JAN-08</p>
<p>SQL&gt; select sysdate@ from dual;<br />
select sysdate@ from dual<br />
              *<br />
ERROR at line 1:<br />
ORA-00923: FROM keyword not found where expected</p>
<p>SQL&gt; select <a href="mailto:sysdate@!">sysdate@!</a> from dual;</p>
<p><a href="mailto:SYSDATE@!">SYSDATE@!</a><br />
&#8212;&#8212;&#8212;<br />
15-JAN-08</p>
<p>SQL&gt; select <a href="mailto:sysdate@1">sysdate@1</a> from dual;<br />
select <a href="mailto:sysdate@1">sysdate@1</a> from dual<br />
              *<br />
ERROR at line 1:<br />
ORA-00923: FROM keyword not found where expected</p>
<p>And I don&#8217;t understand anything any more!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Blog &#187; Blog Archive &#187; Oracle, white spaces and unexpected behaviour</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5778</link>
		<pubDate>Tue, 15 Jan 2008 11:47:33 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5778</guid>
					<description>[...] Last week I saw the blog entry &#8220;select 1.x from t1&#8221; from Laurent concerning white spaces in select statements and Tom Kyte&#8217;s answer with a short explanation. Tanel Poder wrote a blog entry &#8220;Can you write a working SQL statement without using any whitespace?&#8221; too. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Last week I saw the blog entry &#8220;select 1.x from t1&#8221; from Laurent concerning white spaces in select statements and Tom Kyte&#8217;s answer with a short explanation. Tanel Poder wrote a blog entry &#8220;Can you write a working SQL statement without using any whitespace?&#8221; too. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5777</link>
		<pubDate>Tue, 15 Jan 2008 08:56:55 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/01/select-1x-from-t1.html#comment-5777</guid>
					<description>@matthias
Probably in Oracle 17, "DUAL""1" will be a table called DUAL"1, in Oracle 11 and before, it is not possible to have a double quote in a table name

@ed
No idea !</description>
		<content:encoded><![CDATA[<p>@matthias<br />
Probably in Oracle 17, &#8220;DUAL&#8221;"1&#8243; will be a table called DUAL&#8221;1, in Oracle 11 and before, it is not possible to have a double quote in a table name</p>
<p>@ed<br />
No idea !
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
