How to search a perticular column in a schema
Hi All,
Hope everyone doing good..!
I need small help on Oracle please..
I have schema called "IMGMIC" in the database and I have one column named "GELOC" in that.
Now the problem is like how do i find out that column is exists(belongs to) in which table of that schema.
I know only the column name & schema name name,but dont know from which table that column is.
I wanted to check that column is belogs to which table.
Please help the best way of searching of the column in detail...
As i am getting this doubt no.of times....
Thanks in ADV.
mkr
You can try one of these, depending on your privileges:
select * from dba_tab_columns where owner = 'IMGMIC' and column_name = 'GELOC';
select * from all_tab_columns where owner = 'IMGMIC' and column_name = 'GELOC';
or connect as IMGMIC and:
select * from user_tab_columns where column_name = 'GELOC';
Similar Messages
-
How to search for perticular substring in given string.
Hi, Can any one tell me how to search for perticular substring in given string.
example:
I have to search for CA in given Order type it may be CA10 or CA15. Please Do the needful.Hi Aniruddha,
check this...
Data var string,
var = 'India'.
search var for 'Ind'.
if sy-subrc = 0. " var having ind
Message 'Ind found' type 'I'.
else . "var not having ind
Message 'Ind not Found' type 'I'.
endif.
thanx
bgan. -
How to search for a column in a database
Hi All,
I am having 100 tables in the database. I know a column name say "column1", i dont know in which table(s) this column exists. How can i know the column is in which table.
Thanks,
SantoshQuery dba_tab_columns/all_tab_columns/user_tab_columns
e.g.
select owner, table_name, column_name
from dba_tab_columns
where column_name= 'EMPNO'; -
How to delete a perticular column value
Hi,
I have a table Tbl_Outdirection, In this i have 10 columns. My Query is how to delete a particular column or columns value from the table, Not entire row.
Please help me.
ThanksDeleting a column value is probably updating it to NULL, in your case.
So,
update [table]
set column = NULL
where [condition to identify the row]
/ -
How to search for perticular Bookmark present in many word files at once
Hi all,
We have templates created through Word 2003. We have created the Bookmarks in that some are fetched from database and others are from a XML file, through the code.
We do Alt+i+k and the list of bookmarks present in that template appears.
So, If I want to search for suppose a bookmark named 'GC_F_faxnumber' which is bookmark for fax number, I need to go through alll templates (there are about 500 template) one by one and then find it out.
I need this work to be done ASAP. Could you please help me in how do I find out a bookmark in number of word files or templates the bookmark is located and in which all templates it is present.
Thanks in advance.:)Hi,
For this requirement, I think you need to iterate to open these files and use
Bookmarks.Exists method to check whether the specify bookmark is exist or not.
There is a link that may benefit you:
# GoTo Bookmark in a Word Document using Excel VBA
http://answers.microsoft.com/en-us/office/forum/office_2003-word/goto-bookmark-in-a-word-document-using-excel-vba/6161709e-5419-4cc4-9c8f-7a2cd5f56d6a
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to search a particular string in whole schema?
Hi Everyone,
My DB version is
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Suppose I have a column say "EMAIL_ID" in employee table. The employee name is "abcd" and his email_id is "[email protected]".
The column name is changing from "EMAIL_ID" to "EMAIL_ADDRESS" due to poor naming convention standard.
Now I've only one constant value i.e. "[email protected]"...So is there any way if I will write a query with this value and I'll get the list of
tables and the exact column name where this mail_id exists?
Regards,
BS2012.create or replace
PROCEDURE value_search_db(p_string VARCHAR2,p_datatype VARCHAR2)
IS
S SYS_REFCURSOR;
CURSOR c_user_col IS
SELECT TABLE_NAME,COLUMN_NAME,DATA_TYPE FROM USER_TAB_COLUMNS,TAB
WHERE TABLE_NAME=TNAME AND TABTYPE='TABLE'
ORDER BY TABLE_NAME;
TYPE TAB_LIST
IS
RECORD
TABLE_NAME VARCHAR2(1000),
COLUMN_NAME VARCHAR2(1000),
DATA_TYPE VARCHAR2(100));
TYPE T_TAB_LIST
IS
TABLE OF TAB_LIST;
L_TAB_LIST T_TAB_LIST := T_TAB_LIST();
L_STMT CLOB;
l_exists NUMBER;
BEGIN
FOR i IN c_user_col LOOP
L_TAB_LIST.EXTEND;
L_TAB_LIST(L_TAB_LIST.LAST).TABLE_NAME := I.TABLE_NAME;
L_TAB_LIST(L_TAB_LIST.LAST).COLUMN_NAME := i.COLUMN_NAME;
L_TAB_LIST(L_TAB_LIST.LAST).DATA_TYPE := i.DATA_TYPE;
END LOOP;
FOR i in 1..L_TAB_LIST.COUNT LOOP
l_exists := NULL;
IF L_TAB_LIST(I).DATA_TYPE = p_datatype THEN
L_STMT := 'SELECT 1 FROM '||L_TAB_LIST(I).TABLE_NAME||' WHERE '
||L_TAB_LIST(I).COLUMN_NAME||' LIKE ''%'||p_string||'%''';
OPEN S FOR L_STMT;
FETCH S INTO l_exists;
CLOSE S;
IF l_exists IS NULL THEN
NULL;
ELSE
DBMS_OUTPUT.PUT_LINE('Table name: '||L_TAB_LIST(I).TABLE_NAME||'--Column Name: '||L_TAB_LIST(I).COLUMN_NAME);
DBMS_OUTPUT.PUT_LINE(L_STMT);
END IF;
END IF;
END LOOP;
END value_search_db;
I t may help you.:-) -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck -
How to search all columns of all tables in a database for a keyword?
Dear Team,
i have an requirement that : i want to search all the columns of all the tables in the particular database based on the specific key word or an free text.
example :
table 1: columns data
empname sam
empid 01
table 2 columns data
deptname sam
departmentid 10
table 3 columns data
organization name sam
organization id 1
when i search for text " SAM"
it should search me from the entire database, all tables and columns of it and display the result
output : tablename cloumn value
table1 empname sam
table2 deptname sam
table3 organizationame sam
the example is just an sample not the real data .
please help me with sample code or any link related to it .
thanks in advanceHi justin , thanx for the reply
the basic requirement that we required is ,
the user will just type the keyword( value in the coumn) he required and it should search all the tables and columns of the table in the database and i have to show this in the front ent in the table format. here the user will analyse the information based on the search .
it is just like the google search we does( type the keyword in free text) it will display the result.
so for that i have to search entire table and columns in the whole database.
please if any one provides me the solution it will be help full for me.
thanx in advance -
How to calculate value from perticular column and row in pivot table
Hi all,
I am having following pivot table.
Country
A
B
C
D
F
G
H
J
K
L
M
Grand Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
13114
Now I want sum of Columns A, B, C, K, M where Country = India in one field.
and sum of D, F, g in another field. and sum of remainig columns in another field.
How can i get sum of values with some where condition in pivot table.
Thanks,Hi Michael,
Following is the representation which i want
CouRntry
ROW LABLES
A
B
C
Total of
ABC
F
G
Total
Of FG
J
K
L
TOTAL
of JL
Grand
Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
1
Also if i get sum how can i add a column in between of the fields.
Thanks -
How do I select multiple columns in a recordset
I am very new to Dreamweaver/PHP/MYSQL
I have created my recordset but I cant work out how I select multiple columns.
How do I select multiple columns, I want to search for data that is spread over different columns.
My recordset looks like this just now.
SELECT *
FROM names
WHERE nameone = john
I have 11 columns where the name john my or may not appear so how would I select all the columns. What would the recordset look like.
As I have said I,m very new to this and forgive me if what i have just said makes no sense.
Thanks>I have 11 columns where the name john my
>or may not appear so how would I select all
>the columns. What would the recordset look like.
You could try a Full-Text search (if mysql supports it) but on the surface, this sounds like a badly designed data structure. What does your database and table design look like? -
How to get the dynamic columns in UWL portal
Hi All,
I am working on UWL Portal. I am new to UWL. I have down loaded uwl.standard XML file and costomized for getting the values for "select a Subview" dropdown and I am able to see the values in the dropdown. Now my requirement is to get the dynamic columns based on the selection from dropdown value.
can any body suggest on how to get the dynamic columns in UWL portal.Hi Manorama,
1) If you have already created a portal system as mentioned in following blog
/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
2) If not, then try to create the same. Do not forgot to give the Alias name .
3) After creating a system, log on to the VC, Create one iView.
4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
6) Select your system Alias name and perform search.
7) It will display all the BAPIs and RFCs in your systems.
8) Select required BAPI and develop the VC application.
Please let me know if you any further problems.
Thanks,
Prashant
Do reward points for useful answers. -
How to search a word in a 2d array
Hi, i'm seeking advice on how to search a word in 2d array. The method will only taking one argument string and will search in row by row, column by column and diagonall down and up. for example, user input String "SEEK" or then the method will have different search pattern to locate the word. Here is the 2d array look like.
S + K E E S + +
E + + + + + + K
E S + + + + + E
K + E + + + + E
+ + + E + + + S
+ + + + K + + +
What i've done so far is;
// this loop is for search SEEK column by column
public boolean finder(String w){
for(int j = 0; j < puzzle[0].length; j++) {
for(int a = 0; a < w.length(); a++) {
char n = w.charAt(a);
String r = String.valueOf(n);
if (puzzle[0][j] != w.charAt(a)) {
return false
} else {
return true;read this
-
Need help :: how to search in nested table/varray data type
I have the following structure...
CREATE TYPE lang_con AS VARRAY(15) OF VARCHAR2(50);
CREATE TYPE rel_con AS VARRAY(15) OF VARCHAR2(50);
CREATE TABLE Country_n(
"NAME" VARCHAR2(40 BYTE) CONSTRAINT "COUNTRY_NAME_NOTNULL_N" NOT NULL ENABLE,
"CODE" CHAR(2 BYTE),
"CAPITAL" VARCHAR2(40 BYTE),
"PROVINCE" VARCHAR2(40 BYTE),
"POPULATION" NUMBER,
"AREA" NUMBER,
"LANGUAGES" lang_con,
"RELIGIONS" rel_con
after inserting data from 3 different table (country, language, religion) the table looks like this....
Cyprus cy Nicosia Government controlled area 775927 9250 VARCHAR(English,Greek,Turkish) VARCHAR(Greek Orthodox,Muslim)
Czech Republic cz Prague Prague 10246178 78866 VARCHAR(Czech) VARCHAR(Orthodox,Protestant,Roman Catholic)
Germany de Berlin Berlin 82424609 357021 VARCHAR(German) VARCHAR(Muslim,Protestant,Roman Catholic)
Djibouti dj Jibuti Jibuti 466900 23000 VARCHAR(Afar,Arabic,French,Somali) VARCHAR(Christian,Muslim)
Denmark dk Copenhagen Frederiksberg Kommune 5413392 43094 VARCHAR(Danish,Faroese,German,Greenlandic) VARCHAR(Evangelical Lutheran,Muslim)
now I want to get the countries in which german language is being spoken. Actually I need to know how to search in this custom data type of mine....I also need to perform other operation further so really need to know how can I search in this custom data type...
when I execute the following query....
select * from country_n cn where cn.languages like '%German%' order by name
I got the following error....
Error starting at line 1 in command:
select * from country_n cn where cn.languages like '%German%' order by name
Error at Command Line:1 Column:33
Error report:
SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got AHMADM.LANG_CON
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:
*Action:
let me know please...looking forward to your replies....
Thanks,Hi,
Try this:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> SELECT t1.*
2 FROM country_n t1,
3 TABLE(t1.languages) t2
4 WHERE column_value LIKE '%German%';
NAME CODE CAPITAL PROVINCE POPULATION AREA LANGUAGES RELIGIONS
Germany de Berlin Berlin 82424609 357021 <Object> <Object>
SQL> Regards, -
How to search show descriptions in Podcasts
Most podcasts provide a show description accessible by right clicking the show. My question is how to search these descriptions by keyword. Is this possible? If so how?
Thanks!iTunes will search the Description if you turn that column on in your current view. Right-click on the column headings, then select "Description" to mark it with a check.
-
How to convert rows into columns
Hi,
How to convert rows into columns of two different tables.
These two tables have two common columns namely (shipline,pos).
Let me know if we have any built in functions to do this.
thank you very much .
Edited by: 808542 on Dec 7, 2010 8:35 PM
Edited by: 808542 on Dec 7, 2010 8:37 PMHave you tried this first?
http://forums.oracle.com/forums/search.jspa?threadID=&q=row+to+column&objID=f75&dateRange=last90days&userID=&numResults=15&rankBy=10001
Maybe you are looking for
-
OWB: Error while trying to Generate
I have a project defined in OWB 3i and everything was working fine till last week. Today while I am trying to generate a mapping it is giving the following error Locking error, unable to continue with generation. Another wierd thing I noticed is, whe
-
Where can I buy? Will it work with Final Cut Express?
Is it possible to purchase just Motion? And I read everywhere that motion works with final cut pro, will it work with express also? Thanks
-
How do I get iTunes to list music in my iTunes library?
All of my music appears to be correctly located in the iTunes library file, but none will display when I open iTunes. As a test, I just purchased a song from the iTunes store; it downloaded into the same file where all my other songs reside, but the
-
I purchased my MacBook Pro for school. I own my iMac and it has my "Iworks" i purchased it under my apple account, although it is not wanting me to have the program on this computer ? Do i have to purchase the i works again?
-
Windows 7 x64, can't search PDF files
I am running Windows 7 x64. I have installed Reader version 9.3.1.. Seems to work OK, but Windows search does not index PDF files (this works fine on my Vista x86 box). I checked the Indexing options and I notice that under Advanced, File Types "pdf"