473,385 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

get default funtion of a column

Hi, Folks.

If I have table

create table t1(col1 number getnumber()) // getnumber is a funtion to
generate default value of col1.

How I can get this function string by a query on data dictionary
views?

Thanks,

--ye
Jul 19 '05 #1
3 3114
do you mean that how you can get return value in data dictionary view
?

I think this function will be executed on fly if you are trying to
insert in this table.
Faheem

yl**@tibco.com (Ye Liu) wrote in message news:<61*************************@posting.google.c om>...
Hi, Folks.

If I have table

create table t1(col1 number getnumber()) // getnumber is a funtion to
generate default value of col1.

How I can get this function string by a query on data dictionary
views?

Thanks,

--ye

Jul 19 '05 #2
do you mean that how you can get return value in data dictionary view
?

I think this function will be executed on fly if you are trying to
insert in this table.
Faheem

yl**@tibco.com (Ye Liu) wrote in message news:<61*************************@posting.google.c om>...
Hi, Folks.

If I have table

create table t1(col1 number getnumber()) // getnumber is a funtion to
generate default value of col1.

How I can get this function string by a query on data dictionary
views?

Thanks,

--ye

Jul 19 '05 #3
yl**@tibco.com (Ye Liu) wrote in message news:<61*************************@posting.google.c om>...
create table t1(col1 number getnumber()) // getnumber is a funtion to
generate default value of col1.

How I can get this function string by a query on data dictionary
views?


I'm not perfectly certain that I understand your question correctly,
but here goes anyway.

If you are trying to get to see the code for that function to see what
it does, you may find it in the DBA_SOURCE view. The statement below
work for me to get the code for one of my functions:

select line
, substr(text,1,100) as SourceCode
from dba_source
where owner = 'BBC'
and name = 'XKLUB'
order by line asc;

Hope this helps.

Bo Brunsgaard
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tito | last post by:
From the Python's tutorial, about default argument values: <quote> The default value is evaluated only once. This makes a difference when the default is a mutable object such as a list,...
3
by: steve | last post by:
Hi, I'd like to round all amounts in a certain column to 2 decimals. I tried the following query, but eventhough the syntax is correct, it doesn't give any result: update gbkmut set bdr_hfl...
5
by: Paul | last post by:
Hi I have a table that currently has 466 columns and about 700,000 records. Adding a new DEFAULT column to this table takes a long time. It it a lot faster to recreate the table with the new...
4
by: Brian Brane | last post by:
I have properties that wrap DataRow columns as in: public int aNumber { get{ return m_DataRow; } set{ m_DataRow = value; } } If the column happens to contain DBNull, I get a cast exception...
30
by: Bruce Momjian | last post by:
I have events in the next few weeks in New York City, Copenhagen, Paris, and Atlanta. Check the News section on the web site for more information. I will also be in Amsterdam February 2-3, though...
5
by: Lee Xuzhang | last post by:
/* from SICP -- Exercise 4.21: ((lambda (n) ((lambda (fact) (fact fact n)) (lambda (ft k) (if (= k 1) 1 (* k (ft ft (- k 1))))))) 10) */
6
by: Giacomo | last post by:
Hi, I've the following problem. I must delete a column DEFAULT from a table, but I must do it with a script, independently from the server where it'll be executed. Locally I've tried with: ...
3
by: binder | last post by:
I am designing a new table with a few columns that may or may not have a value on each row that is inserted. What issues determine whether to allow a NULL value to be inserted for that column or...
1
by: Ye Liu | last post by:
Hi, Folks. If I have table create table t1(col1 number getnumber()) // getnumber is a funtion to generate default value of col1. How I can get this function string by a query on data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.