How to create multiple tables SQL in toplink?
Table A {
field1,
field2,
field3
Table B {
field1,
field2,
field3
select a.field1,a.field2,b.field3
from a,b
where a.field1=b.field1
and a.field2=b.field2
How can I create dynamic sql in toplink as Hibernate HQL?
Is there any simple method?Use multipleTableJoinExpression is too difficult.
Thanks!
Bump
Similar Messages
-
How to create multiple tables in Adobe air?
Hi, I am using Flash CS5 coding for adobe air 2.0.
How do you create a database with multiple tables and link them together?
I know how to do it in SQL just can't seem to get it to work in Flash CS5 Adobe air.
The following is ONLY an example of a database layout that shows linking tables together.
Table CUSTOMER
customerID - PK
customerName
Table ITEMS
itemID- PK
itemName
Table ORDERS
orderID- PK
data
customerID = 1
customerName = bob
itemID = 1
itemName = cup
orderID = 1
output example
1,bob,1,cup,1
ThankyouBump
-
Create multiple tables in adobe form
hi,
Is there anyone can tell me how to create multiple tables in Adobe Form using SAP Netweaver Developer Studio. Are there any steps i can follow?Hi,
Define the tables in subforms and then wrap them into another subform and make it the subform as type flowed.
Regards,
Raju. -
How to drop multiple tables in SQL Workshop
Hi,
I'd like to drop multiple tables in one time but
SQL command processor returnes error message: ORA-00933.
Could you please tell me how to drop multiple tables in
one time?
My trial was follows
Drop table "table1", "table2"
Result
ORA-00933: SQL command not properly ended
Regards,
Hideki SakamotoHideki,
SQL syntax permits you to specify only one table in a DROP TABLE command.
The SQL Command Processor permits you to run one statement or PL/SQL block per submission.
So there are at least two ways you can do this. You could either upload or create a SQL script in SQL Workshop which contains your multiple statements:
drop table "table1"
drop table "table2"
or you could execute a single anonymous PL/SQL block in the SQL Command Processor, as in:
begin
execute immediate 'drop table "table1"';
execute immediate 'drop table "table2"';
end;
Joel -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLY
hello i m new to sqldeveloper so plz dnt laugh if m asking silly question
HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLYUse the 'pin' on your table editor
http://www.thatjeffsmith.com/archive/2011/11/sql-developer-quick-tip-pin-query-result-sets-and-plans/
Then open your 2nd table. If you want to see both at the same time, right-click on the table editor tab and select 'New Editor Tab Group'
Not a silly question, but no need to shout :) -
How to Create multiple rows in Rich table programatically
Hello ADF Exparts.
I am Using below Code to create Rich Table Programatically on Clicking a button but I can't able to Create multiple tables will you please help me to create new row programatically
public class NewTable {
private RichInputText txtSearching;
private RichShowDetailItem resultTab;
private RichShowDetailItem simpleSearchTab;
private RichColumn firstColumn;
private RichOutputText outPutText;
private String searchString;
AdfFacesContext ctx=AdfFacesContext.getCurrentInstance();
Connection conn;
RichTable table;
Statement stmt;
private RichShowDetailItem basicSearchTab;
private RichTable basicResultTable;
private RichPanelGroupLayout panelGL;
public NewTable() {
public String buttonClicked() {
// Add event code here...
//Starrt Creating Table
table =new RichTable();
table.setId("demo");
table.setVisible(true);
table.setWidth("1024px");
table.setValue("mat_search");
table.setVar("Search");
table.setFilterVisible(true);
table.setAllDetailsEnabled(true);
table.setRowKey("0");
table.setFetchSize(25);
table.setRows(10);
table.setRowBandingInterval(0);
table.setRowSelection("single");
// table.setHorizontalGridVisible(false);
//table.setVerticalGridVisible(false);
//Start Table Header Text Declaretion and Assignment
RichOutputText colTextMat_No = new RichOutputText();
colTextMat_No.setValue("Material No ");
RichOutputText colTextShotDes = new RichOutputText();
colTextShotDes.setValue("Short Description");
RichOutputText colTextLongDes = new RichOutputText();
colTextLongDes.setValue("Long Description");
//Start Table Columan Creatin
RichColumn colMat_No = new RichColumn();
colMat_No.setVisible(true);
colMat_No.setHeader(colTextMat_No);
colMat_No.setWidth("100px");
colMat_No.setSortProperty("Material No");
colMat_No.setSortable(true);
colMat_No.setFilterable(true);
colMat_No.setSeparateRows(true);
RichColumn colShotDes = new RichColumn();
colShotDes .setVisible(true);
colShotDes .setHeader(colTextShotDes);
colShotDes.setWidth("500px");
colShotDes.setSortProperty("Short Description");
colShotDes.setSortable(true);
colShotDes.setFilterable(true);
colShotDes.setSeparateRows(true);
RichColumn colLongDes = new RichColumn();
colLongDes .setVisible(true);
colLongDes .setHeader(colTextLongDes);
colLongDes.setWidth("500px");
colLongDes.setFilterable(true);
colLongDes.setSeparateRows(true);
//End Table Columan Creatin
//Start Creating table Children
List<UIComponent> tblChild;
tblChild=table.getChildren();
//Start adding Columan to Table
tblChild.add(colMat_No);
tblChild.add(colShotDes);
tblChild.add(colLongDes);
List<UIComponent> displayPanel;
displayPanel=panelGL.getChildren();
List<UIComponent> matChild;
matChild=colMat_No.getChildren();
RichOutputText rot=new RichOutputText();
rot.setValue("15000");
matChild.add(rot);
displayPanel.add(table);
System.out.println("RowIndex="+table.getRowIndex());
System.out.println("Row Count="+table.getRowCount());
return null;
Thank you very muchMaybe you can get some ideas from here -
http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html -
CREATE MULTIPLE TABLES USING BATCH FILE OR ANYOTHER MODE
Dear Legends,
I want to create Multiple table at a single stroke in oracle sql developer or sql*plus using any mode like batch file or sql files...
I dont know the exact mode and how to create it please guide me..I want to learn more about this since am a DBA Beginner..
Any kind of help would be appreciated more...Thanks in Advance
Regards,
Karthik..Hi Everyone,
According to your suggestion I did everything and all works fine yesterday... But today the same script.bat file is not opening sqlplus...
as soon as I double click the bat file it opens the prompt and it shows upto the copyright ..oracle all rights reserved. sql> prompt is not visible or upto that it strucks... please help me..
My SCRIPT.BAT
@echo off
set ORACLE_SID=VESS
set PATH=%oracle_home%\bin\
sqlplus scott/tiger@VESS @test.sql
echo "Disconnected"
My test.sql
select * from tab;
Please help me...
Regards,
Karthik.. -
How to create a table with events in smartforms?
How to create a table with events view in smartforms?
It doesn't like general table with header, main area and footer.
for example:
in smartforms: LE_SHP_DELNOTE
table name is TABLEITEM(Delivery items table)Vel wrote:
I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
I'm using Oracle 10.2.0.4 version.
Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements. -
How to create multiple Tree Type Region In Tabular Form ?
Dear Friends,
i have to design tabular form to Distribute User Rioght to emp to access application
eg if i have Three module in application
1.Administration
2.Attendance
3.Accounts
Module
1 Administration have 5 Pages A,B,C,D,E.
Module
2 Attendance HAVE 4 Pages F,G,H,I
Module
3 Accounts HAVE 7 Pages J,K,L,M,N,O,P
I need these three module divided into three section in tabular form as a tree Type like
Module 1 Tree Open in Tabular Form like
- (Tree Mark Open )
=======================================================
PAGE_ID-------------SUBPAGE_ID-------VIEW-------------------MODIFY-------------------CREATE----------------------------TABLE COLUMN NAME
========================================================
Administration-----------A------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------B------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------C------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------D------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------E------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 2 Tree Open in Tabular Form like
Attendance-----------F------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------G------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------H------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------I------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 3 Tree Open in Tabular Form like
Accounts-------------J------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------K------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------L------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------M------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------N------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------O------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------P------------------CHECK bOX------------CHECK BOX-------------CHECK BOXi need divided these three Module in Tabular form in three region as tree.
Table APPLICATION_PAGE_DETAILS
ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
========================
TABLE USER_RIGHT
======================
ID NUMBER
EMP_ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
VIEW VARCHAR2(1)
MODIFY VARCHAR2(1)
CREATE VARCHAR2(1)How to create multiple Tree Type Region In Tabular Form ?
How can i do this ?
Thanks
Edited by: Vedant on Oct 4, 2011 3:21 AM
Edited by: Vedant on Oct 4, 2011 9:09 PM
Edited by: Vedant on Oct 13, 2011 8:57 PMWell think of it I believe the scenario is too bird viewed hence the solution can't be exact.
But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
Hope this clarifies.
Regards,
Messer -
How to create CT_TOMBSTONE table
In Cus Case ct_tombstone table has been delete some how.
I verified logging in to ods chema and try to run desc for ct_tombstone table
SQL> show user
USER is "ODS"
SQL> desc ct_tombstone
ERROR:
ORA-04043: object ct_tombstone does not exist
Now Cus has query how to create ct_tombstone table.
Can any one please help me , how to re-create this table and create necessary link to other table in ods schema if need ?
FYI:
OID Version: 10.1.2Cus updated saying:
The table was deleted using catalog.sh to rebuild the tombstone index; which in turn deletes and creates the CT_TOMBSTONE table. -
How to create multiple BOM of same parent item?
Hi All,
Please guide me, How to create multiple BOM of same parent item? I tried but system throws a message as same Parent Item already exist in the table. I am afraid if system supports this functionality or not?Hi,
You are welcome.......
Well the exact process would be as I mentioned in my previous post.
1. Create the BOM for an item
2. Choose this item in the Production Order
3. Then in this Production order you can change/ delete/ add whichever item you want .
OR
If all the child items are completely different from the original BOM then you can use the Special Type BOM in which you can always create the BOM while creating the Production Order itself. There is no standard BOM here.
J Nagesh -
How to create the Table of Content (TOC) in WEB
Dear Sir
Please help me
How to create the Table of content (TOC) in Web Intelligence Report,
Thanks
Gnanasekarn.K
Edited by: Gnanasekaran Kandasamy on Nov 20, 2008 11:12 AMHi Gnanasekarn,
You can create TOC in webi using Open Document, You can create link on the TOC and you can connect that link to open new report .
With the help of open document you can open the specific portion of report.
So you can achive your requirement using URL reporting or Open Document.
Regards,
Chaitanya Deshpande -
How to create monthly table creation?
Hi Mates,
Unable to create table by month in analytic database but load the data to the previous table continuous as attached screenshot, Schema user has the creation privilege. We are using Webcenter interaction 10gR4.
How to create monthly table creation please?
Thanks,
KatherineHi Trevor,
Thanks for your help. We were able to create table and load data till Apr as attached.
However the analytic user privilege has been modified on Apr due to server operation.
Since then, there was a message saying there is no permission to create tables in the analytic log,
analytic user privilege has been granted after checked this message, As I suspected, the issue occurred after modifying analytic user privilege.
Currently, analytic users are granted with all privilege.
Any idea please?
Thanks,
Kathy -
How to use multiple table in single control file?
Hi,
How to use multiple table and data file in sigle control file? I have a four table and four csv file i mean data file for that. I am running concurrent program to load the data from csv file to custom table. based on my input data file name, it has to take automatically from one control file.
Can anyone share with me how can i acheive this?
ThanksHi,
Can't we acehive like below. I don't this exactly corrcect.
OPTIONS (SKIP=1)
LOAD DATA
INFILE << file name 1 >>
APPEND INTO TABLE XXCZ_VA_SAMPLE1
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
PARENT_ITEM "TRIM(BOTH FROM :PARENT_ITEM)"
LOAD DATA
INFILE << file name 2 >>
APPEND INTO TABLE XXCZ_VA_SAMPLE2
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
ITEM_NUMBER "TRIM(BOTH FROM :ITEM_NUMBER)"
)Edited by: orasuriya on Sep 14, 2009 3:03 AM
Maybe you are looking for
-
Inserting Pricing condition in Sales order when saving the sales order
Dear ABAPers, My customers requirement is when saving the sales order new pricing condition has to be updated in the line item.for this i am using the User Exit 'USEREXIT_SAVE_DOCUMENT_PREPARE' ( MV45AFZZ).While saving the Sales order i am cal
-
How to get the short text values from F4 SEARCH HELP
Hi Friends, My requirement is in Module -pool Screen Programming, i have Designed one field in a custom screen and provided a F4 search help to that field.. For eg the F4 help is displayed as below. Value short text 1
-
Will the optical drive from a 14" iBook G3 fit and work in a 12" iBook G3?(
The logic board in my 14" G3 finally died (after two replacements). I've got a 13" G3 that works great, but has the CD-ROM optical drive. Will the combo drive from the dead 14" fit in the 13" (and, more importantly, will it work)? I'm not afraid of t
-
Error when executing dbms_job.submit
I work with ORACLE server 8.1.7 and I have executed the subprogram SUBMIT of the package dbms_job under an account which has not the DBA privilege . I have already defined a bind variable of type number in SQL*Plus, and there is a simple stored proce
-
hi , while installing oracle9i in linux it asked me to run ./root.sh when i run this command it asked to me to give local bin directory. so i gave /usr/bin after that it gave the following error: starting RPM to install the LSSV product for more inst