How can I get the table name of my column?
I'm using the JDK 1.3 trying to get a table name of a column from a result set. Regardless of what driver I'm using (ODBC Bridge/Oracle) I always get a null returned. Does this method work?
If not, if I'm doing an SQL query that uses more than 1 table and each table has a return of the same column name, how do I distinguish which table the column is from. Thanks
You can use ResultSetMetaData interface and method
String getTableName(int column)
This should return you the table name.
To get ResultSetMetaData object, you can use
ResultSetMetaData getMetaData()
method of ResultSet interface.
HTH
Similar Messages
-
How can we get the table name...
Hi All,
How can we get the actual table name for an argument if its datatype is %ROWTYPE.
For Ex :
function ACCOUNT_UPDATE (account_no number,
person person%rowtype,
amounts dbms_describe.number_table,
trans_date date)
return accounts.balance%type;
In the above function 'ACCOUNT_UPDATE', for argument person the datatype is 'person%rowtype'.
Is there any way to get the name from Data Dictionary tables.
I tried using All_Arguments and DBMS_DESCRIBE, I can able to get all the individual fields of %ROWTYPE by I could not able to know the exact table name thru the DD.
my requirement is dynamically I need to declare a variable for the argument datatype.
Your help is highly appreciated.
Thankshi vinay,
this is the easiest way to find the tablename of a particular field.
t.code:XD01.
enter.
select the kunnr field.
press F1.
the top of the screen u will get 'Technical setting icon.
select that one.then u will get tablename,fieldname,parameter id also.
if helps give the rewards.
regards,
akash.k -
How can I get the table name of a field..
Hi,
If we know the table name we can find all the fileds from it
using desc <tablename>.
But, I would like to find table name of a known field's name.
Where all these fields are storing in the database.
THanks in Advance,
Srinivasulu.ALL_TAB_COLUMNS
rgds, APC -
How can I get the infoset name by giving the name of a program of a query?
How can I get the infoset name by giving the name of a program of a SAP Query?
Regards,
SubhoUse FM RSAQ_DECODE_REPORT_NAME.
You can also use AQLQCAT table. -
We are upgrading from 8.3 to 9.2. How can i get the table(record) structure changes between these 2 versions. I am not able to find it in Oracle support.
My guess is you want to upgrade HR8.3 to 9.2 - and that is not one jump upgrade. You will need to go HRMS 83 to 90
(PeopleSoft Enterprise HRMS 8.3x to 9.0 Upgrade (Doc ID 747333.1) and then 90 to 92 (PeopleSoft Human Capital Management 9.0 to 9.2 Upgrade Home Page (Doc ID 1536087.1)
Each these MOS pages contains the Demo to Demo Compare Reports that show the data structures changes between the releases.
Hope it helps. -
C Programming: How can we get the filesystem name for a given file-path?
C Programming: How can we get the filesystem name for a given file-path?
Say I have a filepath=/mnt1/file1
Using some OS API like stat, can I get the Filesystem /mnt ?
Thanks in advance,
-VEnter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
If you need to go further into the contents of the Application package, you can continue with /Contents...
Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app -
How can I get the query name in webitem method ?
Hello,
I have defined a new web item but I can't retrieved parameter of my webitem in the RENDER method for instance. I have declared a parameter in the RSRRENDERATR table like this :
REN_NAME : MY_WEBITEM
ATR_NAME : MY_PARAM
ATR TYP : TEXT
CHR MAX LEN : 50
How can I do this ? How can I get the MY_PARAM value in the RENDER method ?
Thanks a lot
GC.
Edited by: CoGr on Feb 11, 2008 12:10 PMHi ,
data l_r_view type ref cl_rsr_www_view.
data l_t_text_symbols type rrx1_t_txt_symbols.
l_r_view =? n_r_data_provider.
CALL METHOD L_R_VIEW->n_r_request->TEXT_ELEMENTS_GET
IMPORTING
E_T_TXT_ELEMENTS = l_t_text_symbols.
l_t_text_symbols contains all DP information like Query technical name, or Report text last load etc.
best regards,
kai -
How to get the table name and bind columns names in an INSERT statement ?
I have an INSERT statement with input parameters (for example
INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
without parsing the statement which is the name of table to
insert to and the corresponding columns.
This is needed to generate the SELECT FOR UPDATE statement to
refetch a BLOB before actually writing to it. The code does not
know in advance the schema (generic code).
Thanks in advance,
Joseph CanedoOnce you have prepared your statement, you can execute the
statement with the OCI_DESCRIBE_ONLY mode before binding any
columns. Then you can use OCIParamGet to find out about each
column (column index is 1-based). You should get OCI_NO_DATA or
ORA-24334 if there are no more columns in the statement. Note
that the parameter descriptor from OCIParamGet is
allocated/freed internally by OCI; you do not need to manage it
explicitly. The parameter descriptor is passed to OCIAttrGet in
order to obtain for instance the maximum size of data in the
column OCI_ATTR_DATA_SIZE. You can also get the column name in
this way, although I do not remember the #define off the top of
my head. Getting the table name appears to be much more
difficult; I have never had to do that yet. Good luck. -Ralph -
How can I get the inbox name of exchange?
I wanna get the letters from exchange server, the code i writed below:
Session session1 = Session.getInstance(new Properties(), null);
session1.setDebug(true);
Store store = session1.getStore("pop3");
store.connect(pop,-1,popuser,poppwd);
Folder folder = store.getDefaultFolder();
folder = folder.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
the erro report displayed:
"no such mailbox in this server"
and i don't know how can i know the mailbox name in my exchange server? is it "INBOX"?
any idea?
thank you!You can use the following to get a list of the folders that are on the server. I don't know what rules Exchange uses when accessed through POP3 to name its inbox but you should be able to get a complete list this way.
=======================================================================
Folder rf = store.getDefaultFolder();
if ((rf.getType() & Folder.HOLDS_FOLDERS) != 0)
Folder[] f = rf.list("%");
int count1 = 0;
for (int i = 0; i < f.length; i++)
System.out.println(f.getName); -
Junit : How can I get the method name (say testMyAddress) that failed
My code is below
TestSuite masterSuite = new TestSuite(testClass);
TestResult result = new TestResult();
masterSuite.run(result);
Enumeration errors = result.errors();
while (errors.hasMoreElements())
TestFailure error = (TestFailure)errors.nextElement();
Test test = error.failedTest();
/*will give me the class name but how can I get the method that threw the exception.
I can get fName (that contains the method name) field to get the method,but being private I cannot hold of the field.
Wondering if there is any easy way to get the method name that threw exception,without writing unneccessary code
Class c1 = test.getClass();
thx
mgetting all methods is no good!
My test class looks like this
MyTestClass{
testGoodData(){
asserttrue(.....);
testBadData(){
asserttrue(.....);
testNullData(){
asserttrue(.....);
someHelperMethod(){
thx
m -
How can i find the administrator name and password for my iMac .
This was a refurbished product purchased online and i need this info to download new things form the apple store ?See #5
Step by Step to fix your Mac -
How can I get the host name from Email address?
hi
When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanksStripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
http://www.stopspam.org/email/headers/headers.html
Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
Sean -
How can I get the path name and rename it?
I Hope someone who knows more about automator than I can help me out here. What I'm trying to do is get the path file name, while also changing part of it. Here is my example:
I can get the path name with this "Get Path" script I found http://automatorworld.com/archives/get-path/all-comments/
It does half the job so I just need to tweak it but know how. When I get the path this is what I'll get: /Volumes/Public/Creative Services/Campaigns/2010/NCDDiv-32CDV Upgrade/NCDDIV-32Versions.xls
I need to remove the beginning part"/volumes" to "file://///nhmanmkt01"
This is so I can send the path from our sever where we keep our files to my windows friends so they can open it.
Thanks for any help you can provide!ok, make the following workflow.
1. get selected finder items.
2. run shell script
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
for f in "$@"
do
echo "$f"|sed 's%/Volumes%file://///nhmanmkt01%'
done</pre>
set the script to accept input as arguments
3. copy to clipboard
save it as a finder plugin. -
How can I get the query name/aggregationslevel in my planning function?
Hi,
is it possiable to get the query name/aggregationslevel in a planning fuction?
thanks for your idea.
hongweiHi,
The interface IF_RSPLFA_INFOPROV_DESC
provides methods for retrieving the most important properties of an InfoProvider from the point of view of the implementation class of a planning function type.
Methods GET_T_CHARNM and GET_T_KEYFNM return the names of the characteristics and key figures in the InfoProvider.
You can get the properties of the InfoObjects and compound information by calling method GET_TAB_IOBJ_PRO and GET_TAB_IOBJ_CMP .
Does this help?
Best Regards
Shyam -
How can I get the table control up arrow or down arrow SCROLL OK_CODE?
Dear All,
I want get the table control up or down Scroll OK_CODE (not button, is arrow click), But I debugged have not found when I click the up or down scroll.
Please give me some help.
ThanksHi Sun,
PBO..
Loop with control T1.
module get_Looplines.
Endloop.
Module get_looplines.
Looplines = sy-loopc. "<< by using this you can get the scroll bar...
Endmodule.
if you wan the ok_code for scroll bar in table control...
the ok_code is not generated for scroll bar..
but if you do not clear the ok_code in PBO it will carries the ok_code when ever you press scroll bar up and down...same ok_code is repeated..
Regards,
Prabhudas
Maybe you are looking for
-
SharePoint 2010 search webservices compatibility with SharePoint 2013
Please let us know whether the SharePoint 2010 search webservice is compatible with SharePoint 2013. When we try to hit the SharePoint 2013 search service with the query developed in the Sharepoint 2010 , we are getting "System.Not supported" excepti
-
Inbound Delivery creation in ECC6.0 through IDoc (DELVRY03.DESADV)
Inbound Delivery creation in ECC6.0 through IDoc (DELVRY03.DESADV) From SCM ICH system Supplier creates ASN on the WEBUI & sends it ECC 6.0 using XI. This is Proxy (DespatchedDeliveryNotification) to IDOC (DELVRY03.DESAV) scenario But at the receiver
-
Hi. I have a Mac Pro with OS X 10.7.5 I want to use Bootcamp to install on one partition Windows 7 32bit, the other side should stay OS x. I tried to install, everything goes well until the last automatic reboot from windows. It does not boot correct
-
Regardless of method chosen, (professional, best or whatever the third option ius) all DVD's I create, the pictures are blurred, cannot be ceaned up, and look bad. Meanwhile, burning pictures to a CD, are fully pixeled, mainain the original resolutio
-
Local test Environment for DW CS4
Hi, I'm a novice to this. So please be patient with me. I'm using Dreamweaver CS4 and also installed on my PC XAMPP for windows. I'd like to practice with DW by taking someone's CSS Template and adopt it to my needs: both Text and Graphics. Please