Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2008, 03:52 AM
jomet
Guest
 
Posts: n/a
Default casting LONG

Hi,

using this query
SELECT COLUMN_NAME, cast(DATA_DEFAULT as varchar2(100))
FROM(USER_TAB_COLUMNS) WHERE 1=1 AND DATA_DEFAULT IS NOT NULL

it gives error
SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got LONG

how can i cast LONG to varchar2

thanks,

jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
 
Old March 25th, 2008, 12:43 AM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default

Try the link
http://www.thescripts.com/forum/thread721985.html


Prabodh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Long Long int to bin walid C# 0 January 23rd, 2007 12:47 PM
Use of long long int jvanp C# 2005 2 September 20th, 2006 06:07 PM
Use of long long int jvanp C++ Programming 7 October 3rd, 2004 01:59 PM
string to "long long" without using atoll sarraju C++ Programming 2 August 4th, 2004 07:19 AM
Modifying long text in a long field sajsal Classic ASP Databases 1 February 20th, 2004 12:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.