<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: How to avoid special characters in column names?</title>
	<atom:link href="http://oraqa.com/2006/09/21/how-to-avoid-special-characters-in-column-names/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/09/21/how-to-avoid-special-characters-in-column-names/</link>
	<description>Oracle Question and Answer</description>
	<pubDate>Mon, 06 Oct 2008 14:23:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://oraqa.com/2006/09/21/how-to-avoid-special-characters-in-column-names/#comment-195</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Thu, 21 Sep 2006 22:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/09/21/how-to-avoid-special-characters-in-column-names/#comment-195</guid>
		<description>You do not need to filter out special characters as long as you wrap your column names with qutation marks:

&lt;pre&gt;
SQL&gt; CREATE TABLE t
  2  ("this%is,so-,cool$,man()" VARCHAR2(10),
  3  "This@#is^~even+&#038;cooler" NUMBER)
  4  /

Table created.

SQL&gt; INSERT INTO t VALUES ('A', 1)
  2  /

1 row created.

SQL&gt; INSERT INTO t VALUES ('B', 2)
  2  /

1 row created.

SQL&gt; SELECT * FROM t
  2  /

this%is,so This@#is^~even+&#038;cooler
---------- ----------------------
A                               1
B                               2
&lt;/pre&gt;

If you still want to remove these special characters, two SQL functions may come in handy: &lt;a href="http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions196.htm" rel="nofollow"&gt;TRANSLATE&lt;/a&gt; and &lt;a href="http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm" rel="nofollow"&gt;REPLACE&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>You do not need to filter out special characters as long as you wrap your column names with qutation marks:</p>
<pre>
SQL> CREATE TABLE t
  2  ("this%is,so-,cool$,man()" VARCHAR2(10),
  3  "This@#is^~even+&#038;cooler" NUMBER)
  4  /

Table created.

SQL> INSERT INTO t VALUES ('A', 1)
  2  /

1 row created.

SQL> INSERT INTO t VALUES ('B', 2)
  2  /

1 row created.

SQL> SELECT * FROM t
  2  /

this%is,so This@#is^~even+&#038;cooler
---------- ----------------------
A                               1
B                               2
</pre>
<p>If you still want to remove these special characters, two SQL functions may come in handy: <a href="http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions196.htm" rel="nofollow">TRANSLATE</a> and <a href="http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm" rel="nofollow">REPLACE</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
