How to Insert more than one record at a time- with fixed set of values in one field
Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
If someone can guide then the exact problem is given below.
I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
The third field is a numeric field and can contain integers.
I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
Please help for dreamweaver ASP VBScript.
I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
Please help.
Also advise if there are any free dreamweaver server side validation extensions available.
Similar Messages
-
How to save more than 2 records at a time in tabular form?
I have a table name SAMPLE_TABLE, which has SNO,NAME items and one sequence name is SEQ_SAMPLE.
i have one form based on SAMPLE_TABLE. my form is in tabular format, which has 5 records.
in the layout wizard only NAME is displayed. SNO doesnot displayed.
in the layout wizard, there is one push button named as SAVE.
the code of SAVE button(When_Button_Pressed) is
insert into sample_table values(seq_sample.nextval,:sample_table.name);
clear_record;
commit;
my problem is :
when ever i want to save one record at a time there is no problem.
if i want to save more than 2 records at a time then sequence number is alloted for last record. other records have no sequence numbers.
for example i want to insert 2 names as XYZ,PQR then
the table look like this:
sno name
1 PQR
XYZ
if SNO is primary key then it doesnot work because of null value.
can any one solve my problem?
Thanks
MeegadaIs the block a database block or a control block,
1. if database block, assign the primary key on a
trigger like new record instance for each record
enteredour's is a control block, ididnt get your point clearly
could you make it clear how to assign a primary key on a trigger
our criteria is we are having two block as lov_values and lov_name
lov_values:
lov_values_id (sequence generated)
lov_id will be same for the all the values for a particular lov_name
lov_values will be which we enter in the form which will be the only visuble colums on the form
lov_name block:
lov_name
lov_id(sequence generated)
could you help me with the code
thanks
prasad -
How to insert more than 12 items using BDC for MB1C
Hi,
When we use LSMW for data transfer of MB1C transaction, more than 12 items can be inserted in a document.
But using BDC only 12 and below is possible, if the flat file system has more that 12 item, then the document is not created.
How to insert more than 12 item in a document.
RegardsHi Gow,
I have uploaded the MB1C through a BDC and it is working fine for n no of items.
Here is the code. May be this will be of your help.
*& Report ZMB1C
report ZMB1C
no standard page heading line-size 255.
type-pools : slis.
tables : t100.
data: begin of record,
MATNR(018),
ERFMG(017),
EXBWR(016),
end of record.
data : itab like table of record with header line.
data : w_bdcdata type bdcdata.
data : t_bdcdata type standard table of bdcdata initial size 1.
data : messtab type standard table of bdcmsgcoll with header line.
data : mstring(300).
data : vf_index type i,
no_lines type i,
count type i value 0.
data : v_bldat(20),
v_budat(20).
*Excel Sheet Data Upload Details
data : vf_start_col type i value '1', "start column
vf_start_row type i value '2', "start row
vf_end_col type i value '100', "maximum column
vf_end_row type i value '10000'. "maximum row
*/ Internal Table For Excel Data
data : it_excel type kcde_cells occurs 0 with header line.
*/ Field symbol
field-symbols : <fs>.
data : begin of it_messtab occurs 0,
plant(10) type c,
status(10) type c,
message(90) type c,
end of it_messtab.
*Data for ALV display
data : wa_fcat type slis_fieldcat_alv,
colcnt type i.
data : it_fieldcat type slis_t_fieldcat_alv,
i_events type slis_t_event.
data : l_title type sychar70.
data : l_repid like sy-repid.
* Selction Screen
selection-screen begin of block b1 with frame title text-000.
parameters : p_file like ibipparms-path obligatory,
p_mode like ctu_params-dismode default 'A'.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-001.
parameters : p_bldat like MKPF-BLDAT obligatory,
p_budat like MKPF-BUDAT obligatory,
p_bwart like RM07M-BWARTWA obligatory,
p_werks like RM07M-WERKS obligatory,
p_lgort like RM07M-LGORT obligatory.
selection-screen end of block b2.
* At Selction Screen
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = ''
IMPORTING
file_name = p_file.
*Start of Selection Event
start-of-selection.
call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'
EXPORTING
filename = p_file
i_begin_col = vf_start_col
i_begin_row = vf_start_row
i_end_col = vf_end_col
i_end_row = vf_end_row
TABLES
intern = it_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 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.
endif.
if it_excel[] is initial.
MESSAGE I000(ZCL_TCSABAP).
else.
sort it_excel by row col.
loop at it_excel.
move : it_excel-col to vf_index.
assign component vf_index of structure itab to <fs>.
move : it_excel-value to <fs>.
at end of row.
append itab.
clear itab.
endat.
endloop.
endif.
if not itab[] is initial.
DESCRIBE TABLE itab LINES no_lines.
clear messtab.
refresh messtab.
CONCATENATE p_bldat+6(2) '.' p_bldat+4(2) '.' p_bldat(4) into v_bldat.
CONCATENATE p_budat+6(2) '.' p_budat+4(2) '.' p_budat(4) into v_budat.
perform map_rec.
call transaction 'MB1C' using t_bdcdata mode p_mode update 'A'
messages into messtab .
clear t_bdcdata.
refresh t_bdcdata.
loop at messtab where msgtyp = 'E' or msgtyp = 'S' .
select single * from t100 where sprsl = messtab-msgspra
and arbgb = messtab-msgid
and msgnr = messtab-msgnr.
if sy-subrc = 0.
mstring = t100-text.
if mstring cs '&1'.
replace '&1' with messtab-msgv1 into mstring.
replace '&2' with messtab-msgv2 into mstring.
replace '&3' with messtab-msgv3 into mstring.
replace '&4' with messtab-msgv4 into mstring.
else.
replace '&' with messtab-msgv1 into mstring.
replace '&' with messtab-msgv2 into mstring.
replace '&' with messtab-msgv3 into mstring.
replace '&' with messtab-msgv4 into mstring.
endif.
condense mstring.
it_messtab-message = mstring(300).
it_messtab-plant = p_werks.
if messtab-msgtyp = 'E'.
it_messtab-status = 'Error'.
else.
it_messtab-status = 'Success'.
endif.
append it_messtab.
clear it_messtab.
endif.
endloop. "messtab
if not it_messtab[] is initial.
perform buildcatalog.
perform display.
endif.
endif.
*& Form Map_Rec
* text
form map_rec.
perform bdc_dynpro using 'SAPMM07M' '0400'.
perform bdc_field using 'BDC_CURSOR'
'RM07M-WVERS3'.
perform bdc_field using 'BDC_OKCODE'
'NPE'.
perform bdc_field using 'MKPF-BLDAT'
v_bldat.
perform bdc_field using 'MKPF-BUDAT'
v_budat.
perform bdc_field using 'RM07M-BWARTWA'
p_bwart.
perform bdc_field using 'RM07M-WERKS'
p_werks.
perform bdc_field using 'RM07M-LGORT'
p_lgort.
perform bdc_field using 'XFULL'
perform bdc_field using 'RM07M-XNAPR'
'X'.
perform bdc_field using 'RM07M-WVERS2'
perform bdc_field using 'RM07M-WVERS3'
'X'.
loop at itab.
count = count + 1.
perform bdc_dynpro using 'SAPMM07M' '0410'.
perform bdc_field using 'BDC_CURSOR'
'MSEG-EXBWR'.
if count <> no_lines.
perform bdc_field using 'BDC_OKCODE'
'=NPE'.
elseif count = no_lines.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
endif.
perform bdc_field using 'MSEG-MATNR'
itab-MATNR.
perform bdc_field using 'MSEG-ERFMG'
itab-ERFMG.
perform bdc_field using 'MSEG-EXBWR'
itab-EXBWR.
endloop. "itab
endform. "Map_Rec
** Form BDC_DYNPRO
form bdc_dynpro using program dynpro.
clear w_bdcdata.
w_bdcdata-program = program.
w_bdcdata-dynpro = dynpro.
w_bdcdata-dynbegin = 'X'.
append w_bdcdata to t_bdcdata.
endform. "bdc_dynpro
** Form BDC_FIELD
form bdc_field using fnam fval.
if fval <> space.
clear w_bdcdata.
w_bdcdata-fnam = fnam.
w_bdcdata-fval = fval.
append w_bdcdata to t_bdcdata.
else.
clear w_bdcdata.
w_bdcdata-fnam = fnam.
w_bdcdata-fval = fval.
append w_bdcdata to t_bdcdata.
endif.
endform. "bdc_field
* FORM buildcatalog *
form buildcatalog.
clear wa_fcat.
clear it_fieldcat.
colcnt = colcnt + 1.
wa_fcat-col_pos = colcnt.
wa_fcat-fieldname = 'PLANT'.
wa_fcat-tabname = it_messtab.
wa_fcat-seltext_l = 'PLANT'.
wa_fcat-key = 'X'.
wa_fcat-outputlen = '10'.
append wa_fcat to it_fieldcat.
clear wa_fcat.
colcnt = colcnt + 1.
wa_fcat-col_pos = colcnt.
wa_fcat-fieldname = 'STATUS'.
wa_fcat-tabname = it_messtab.
wa_fcat-seltext_l = 'STATUS'.
wa_fcat-outputlen = '10'.
append wa_fcat to it_fieldcat.
clear wa_fcat.
colcnt = colcnt + 1.
wa_fcat-col_pos = colcnt.
wa_fcat-fieldname = 'MESSAGE'.
wa_fcat-tabname = it_messtab.
wa_fcat-seltext_l = 'Message'.
wa_fcat-outputlen = '90'.
append wa_fcat to it_fieldcat.
endform. "buildcatalog
* FORM display *
form display.
l_title = text-002.
l_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_grid_title = l_title
it_fieldcat = it_fieldcat
it_events = i_events[]
TABLES
t_outtab = it_messtab
EXCEPTIONS
program_error = 1
others = 2.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. "display
Regards,
Amit -
How to insert more than 32k xml data into oracle clob column
how to insert more than 32k xml data into oracle clob column.
xml data is coming from java front end
if we cannot use clob than what are the different options availableAre you facing any issue with my code?
String lateral size error will come when you try to insert the full xml in string format.
public static boolean writeCLOBData(String tableName, String id, String columnName, String strContents) throws DataAccessException{
boolean isUpdated = true;
Connection connection = null;
try {
connection = ConnectionManager.getConnection ();
//connection.setAutoCommit ( false );
PreparedStatement PREPARE_STATEMENT = null;
String sqlQuery = "UPDATE " + tableName + " SET " + columnName + " = ? WHERE ID =" + id;
PREPARE_STATEMENT = connection.prepareStatement ( sqlQuery );
// converting string to reader stream
Reader reader = new StringReader ( strContents );
PREPARE_STATEMENT.setClob ( 1, reader );
// return false after updating the clob data to DB
isUpdated = PREPARE_STATEMENT.execute ();
PREPARE_STATEMENT.close ();
} catch ( SQLException e ) {
e.printStackTrace ();
finally{
return isUpdated;
Try this JAVA code. -
How to Insert more than one record at a time
How to insert multiple records at a time?
If someone can advise on this, then the actual problem is described below:
I have a MS access database with one table. The table has three fields. The
first field is an autonumber field for ID number.
The second field contains string values- One out of 7 predefined values. One
set of records consists of 7 records containing all the seven types of
predefined values in fields no 1.
The third field is a numeric field and can contain integers.
I want that the user can enter data for the table using an ASP form in such
a way that he enters one set of records at a time in one single screen. This
way he will not have to remember that he has /has not entered all the seven
set of values for the field no 1.
I am not creating fields with the 7 types of field1value as their names as
it will increase the number of fields drastically.
Please help with inserting multiple records at a time.I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
Please help.
Also advise if there are any free dreamweaver server side validation extensions available. -
How to insert more than 4000 bytes in BLOB column
Hi all,
My oracle version is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0.
I have checked in google and in this forum also, but did not find the answer.
When inserting into less than 4000 bytes, it is inserting without any issues. If i am inserting more than that, it is throwing
error like this ORA-01460: unimplemented or unreasonable conversion requested.
Can anybody guide me how to do this or link.
Thanks in advance.
Thanks,
Paluser546710 wrote:
Hi,
Thank you very much for your reply.
Before, I have not worked with BLOB column, so I don't know much about its using. Currently, I am using direct
insert statement only. Its a normal stored procedure written in a package. I am calling this SP with other columns and
with this BLOB column. I am able to insert into table, if the inserted file is less than 4000 bytes. If it is more than that,
I am getting that problem.
Thanks,
VenuSQL variables can only hold 4000 bytes.
PL/SQL can hold up to 32767
I am getting that problem. 100% lacking in actionable detail
post code & COMPLETE error message & code -
How to delete more than 1 contact at a time
I need to know ASAP how to delete more than one contact at a time
Hello grams4crew!
I can definitely help you in deleting more than one contact at a time, no problem! I hope you're enjoying your Galaxy S5!
You can delete a single contact, or choose multiple contacts
to delete.
1. From the Home screen, tap Contacts.
2. Touch and hold on a contact to select it. You can also
tap other contacts, or choose Select all to select all
contacts.
3. Tap Delete, and then tap OK to confirm.
We have a page for our customers to get the user guides for their devices: http://vz.to/1oMIe2y
I hope this helps!
Thank you,
ChristinaB_VZW
VZW Support
Follow us on Twitter @VZWSupport -
How to open more than 1 file at a time in PSE12?
How do you set PSE12 to open more than 1 file (jpg) at a time? I've seen this question come up many times but no one seems to get the problem resolved. I've tried all the suggestions. Any assistance appreciated.
I had this program installed and working as I wanted about 3 months ago. I then uninstalled and reinstalled a few days ago. Now it won't open more than 1 file at a time.Hi,
My theory is that Windows get confused when it is opening the program file and the following intsructions should create a unique copy. I have produced the instructions in detail because I am never sure how much people are use to - forgive me you know much of it.
Open Windows or Folder Explorer
Navigate to C:\Program Files (x86)\Adobe\Photoshop Elements 12
Look for PhotoshopElementsEditor.exe
Right click on the file and select Copy
Right click on a blank space and select Paste - you should get a prompt asking if you want to continue - you do - this should produce a copy of the file
Rename PhotoshopElementsEditor - Copy.exe to PSE 12 ED - you should get a prompt asking if you want to continue - you do
Close the Explorer
In the Windows Control Panel, select Default Programs
In Default Programs, Select Associate a file type … - it will take a while to display the list
Scroll down to the type you want to select - say .jpg and select it
Click on the Change program button
Click on the Browse button
Search for the PSE 12 ED file renamed in 6 above, select it and then click on the Open button
Click on OK and close the Default Programs
Now try your tests. I can get multiple files to open as well as retain Expert mode.
Good luck
Brian -
Mass transport: how to select more than 7 roles at a time
I have about 50 roles I need to transport. I would like to use mass transport, but when I select all 50 roles, only the first 7 are actually added to the transport list.
I have to repeat the selection many times before all the roles are included in my transport request.. still a rather time consuming process. How can I select more than 7 at a time?> And now we're back to my original problem.
Oh, dear....
> We have a structured role naming convention that would make it very easy to select with wildcards.. however, when I try to do it that way, the system won't let me select more than 8 roles at a time.
This is where I think you do not have a problem but a misunderstanding. Never mind, we see those quite often.
> See if you can reproduce this problem in your environment:
I had to start it first (minisap Nw2004), renew the license and wait for the transport tool to compile. You've got me busy here on a saturday
> 1. Start PFCG
done
> 2. Utilities -> Mass Transport
yep, watched it compile.
> 3. Click multiple selection button
yep
> 4. Enter a mask that would match more than 8 roles,
yep
> press F4
NO! NO! NO! NO! NO! NO! NO! NO! NO! NO!
This is where the misunderstanding starts
> 5. Click select all (make sure more than 8 roles are selected)
No
> 6. Click copy button
No
> 7. Observe that only the first 8 role are actually copied to the multiple selection list
Instead, hit F8 where you have hit F4 and find out all roles that fit the mask will be entered into the transport.
You have mixed up the actual report selection and the search functionality of the selection screen. Play with it, it's fun.
One word of caution: Mass transport can cause perfromance problems and errors. I always try not to enter more than 500 roles into a transport at a time.
Cheers!
Jurjen -
Unable to insert more than 9 rows at a time
Hi there,
I have to insert more than 5000 rows in my table at a time,but i am not able to insert more than 10 ROWS AT ATIME.
Do we need to do some that at the data base level for this to happen??????
Thanks in Advance.Rather than give us unhelpful comments like "still its not taking", why don't you show us exactly what you're doing? We can't help you if you don't give us enough information.
I've tried it and it works fine:
SQL> create table customer (dealership_id number,
2 region varchar2(100),
3 customer_no number,
4 firstname varchar2(100),
5 lastname varchar2(100),
6 address varchar2(100),
7 city varchar2(100),
8 state varchar2(100),
9 zip varchar2(100),
10 country varchar2(100),
11 phone_number varchar2(100),
12 email varchar2(100),
13 gender varchar2(1),
14 age number,
15 transaction_date date);
Table created.
SQL> ed
Wrote file afiedt.buf
1 begin
2 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
3 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
4 TRANSACTION_DATE ) VALUES (
5 1, 'West', 546, 'Maria L', 'Umali', '515 W 59th St', 'San Francisco', 'California'
6 , 10019, 'United Sta', '2122478223', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
7 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
8 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
9 TRANSACTION_DATE ) VALUES (
10 24, 'East', 547, 'Justa', 'Viafara', '66 Avenue C', 'Charleston', 'West Virginia'
11 , 10009, 'United Sta', '2126736156', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
12 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
13 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
14 TRANSACTION_DATE ) VALUES (
15 22, 'East', 548, 'C', 'Vignola', '41 Carmine St', 'Miami', 'Florida', 10014, 'United Sta'
16 , '2122436687', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
17 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
18 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
19 TRANSACTION_DATE ) VALUES (
20 2, 'West', 549, 'Catherine', 'Vignola', '16 Barrow St', 'San Diego', 'California'
21 , 10014, 'United Sta', '2129297697', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
22 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
23 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
24 TRANSACTION_DATE ) VALUES (
25 10, 'West', 550, 'Ashley', 'Weare', '275 W 96th St', 'Oakland', 'California', 10025
26 , 'United Sta', '2128652935', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
27 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
28 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
29 TRANSACTION_DATE ) VALUES (
30 9, 'West', 551, 'Shamire A', 'Zobadi', '446 W 46th St', 'San Jose', 'California', 10036
31 , 'United Sta', '2129740994', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
32 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
33 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
34 TRANSACTION_DATE ) VALUES (
35 20, 'East', 552, 'Iride', 'Ciaccio', '130 Wisner Ave', 'Baltimore', 'Maryland', 12550
36 , 'United Sta', '9145612058', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
37 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
38 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
39 TRANSACTION_DATE ) VALUES (
40 17, 'Central', 553, 'Cecil', 'Jackson', '30 Lake Dr', 'Houston', 'Texas', 12550, 'United Sta'
41 , '9145617354', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
42 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
43 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
44 TRANSACTION_DATE ) VALUES (
45 4, 'West', 554, 'M P', 'Prabhu', '590 River Rd', 'Scottsdale', 'Arizona', 12550, 'United Sta'
46 , '9145656155', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
47 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
48 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
49 TRANSACTION_DATE ) VALUES (
50 16, 'Central', 555, 'Jacob', 'Agam', '221 E 61st St', 'Ann Arbour', 'Michigan', 10021
51 , 'United Sta', '2127524408', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
52 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
53 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
54 TRANSACTION_DATE ) VALUES (
55 23, 'East', 556, 'Alkis', 'Agaphogleous', '208 W 15th St', 'Fairfax', 'Virginia', 10011
56 , 'United Sta', '2126478725', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
57 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
58 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
59 TRANSACTION_DATE ) VALUES (
60 19, 'East', 557, 'Ponti C', 'Cia', '251 Central Park W', 'New York', 'New York', 10024
61 , 'United Sta', '2128777400', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
62 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
63 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
64 TRANSACTION_DATE ) VALUES (
65 27, 'West', 558, 'Steve', 'Ciabbatoni', '71 Broadway', 'Phoenix', 'Arizona', 10006
66 , 'United Sta', '2128639140', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
67 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
68 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
69 TRANSACTION_DATE ) VALUES (
70 13, 'Central', 559, 'Pascale', 'Coadou', '307 E 89th St', 'Austin', 'Texas', 10028
71 , 'United Sta', '2128769343', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
72 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
73 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
74 TRANSACTION_DATE ) VALUES (
75 21, 'East', 560, 'Arthur G', 'Coake', '95 W 95th St', 'Boston', 'Massachusetts', 10025
76 , 'United Sta', '2122221851', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
77 INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
78 STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
79 TRANSACTION_DATE ) VALUES (
80 15, 'Central', 561, 'B P', 'Coakley', '139 W 35th St', 'Minneapolis', 'Minnesota'
81 , 10001, 'United Sta', '2126863187', 'null', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
82* end;
SQL> /
PL/SQL procedure successfully completed.
SQL> select count(*) from customer;
COUNT(*)
16 -
ITunes not syncing more than 1 song at a time with SLVR
I need some help with Itunes and syncing it to my son's Motorola SLVR L7. It seems that if I try to sync more than 1 song at a time, it fails out saying that it can not find file. I can sync one song at a time, but I have to disconnect and reconnect the phone each time. It would take forever to do 100 songs. Does anyone know how to fix this issue?
I also have 2 iphones, v1 and have not problems with them.
Thanks for the help.
RonYes. Click the first track, and hold CTRL while you click additional tracks. Then hit Delete.
(If the tracks you want to highlight are in a row, click the first, hold Shift and click the last.) -
Why can't I text to more than 10 contacts at a time with my iPhone3GS?
Does any one have any feed back on this topic? I have discover this holiday season that I can't no longer text a message to more than 10 people at a time from my contact list. I call apple iphone support and they have confirm that this is the case.
This is a feature that I very much enjoyed in the past and have notice that in the older software version 3.1 of my 3GS, I can still do it, but not in the new version 3.1.2Thank you so much Tamara, I wonder why the folks at help desk for iPhone are not a ware of this answer.. You been very helpful I really appreciated. Happy Holidays to all!
-
How to insert more than one row in an Oracle table in one go
Hi All,
I am working on a file-XI(BPM)-Oracle scenario.
I am sending an xml file to XI via a file adapter. On the receiver end i am using a jdbc adapter to insert the row in the database. There is a transformation step within the BPM which is converting the file to a format understood by the JDBC adapter.
The problem i am facing is that, even if my input xml file contains more than one recordset, only one row is created in the database with the first recordset.
How can i insert all the other recordsets in the database at the same time.
Pls guide
Thanks in advance.
Regards
NeetuHi,
As asked by Bhavesh, i set the occurence of the STATEMENT tab 1 to UB. But still only one row is getting updated in the database at a time.
As asked by Udo, i even tried the same by changing the occrence of ACCESS tab 1 to UB. But still same thing happened.
Can there be some other problem.
The transformation is being dane in the BPM.
As seen in SXMB_MONI, the input xml to the BPM has two RECORDSET tags but the output generated xml in the format understood by jdbc adapter has a single STATEMENT tag.
The two formats are given below
<b>Input:</b>
<?xml version="1.0" encoding="utf-8"?>
<ns:MT_Test_File xmlns:ns="http://namespace-EmpNumberGen">
<EmpGenRecord>
<APPLICANT_NO>20</APPLICANT_NO>
<FIRST_NAME>abc</FIRST_NAME>
<LAST_NAME>xyz</LAST_NAME>
<FUNCTION>ADMIN</FUNCTION>
<DESIGNATION>ZA</DESIGNATION>
<RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
<RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
<EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
<STATUS>A</STATUS>
<***>M</***>
</EmpGenRecord>
<EmpGenRecord>
<APPLICANT_NO>14</APPLICANT_NO>
<FIRST_NAME>abc</FIRST_NAME>
<LAST_NAME>xyz</LAST_NAME>
<FUNCTION>ADMIN</FUNCTION>
<DESIGNATION>ZA</DESIGNATION>
<RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
<RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
<EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
<STATUS>A</STATUS>
<***>M</***>
</EmpGenRecord>
</ns:MT_Test_File>
<b>Output</b>
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Emp_No_Generation xmlns:ns0="http://namespace-EmpNumberGen">
<Statement>
<SAP_EMPGEN action="INSERT">
<access>
<APPLICANT_NO>20</APPLICANT_NO>
<FIRST_NAME>abc</FIRST_NAME>
<LAST_NAME>xyz</LAST_NAME>
<FUNCTION>ADMIN</FUNCTION>
<DESIGNATION>ZA</DESIGNATION>
<RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
<RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
<EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
<STATUS>A</STATUS>
<***>M</***>
</access>
</SAP_EMPGEN>
</Statement>
</ns0:MT_Emp_No_Generation>
This is a bit urgent.
Pls help
Regards
Neetu -
How to insert more than one values
Oracle 9i
Hi all
I have 80 values how to insert it in a single time, it is in production
This is my insert statement
Insert into FND_LOOKUP_VALUES
(LOOKUP_TYPE,LANGUAGE,LOOKUP_CODE,MEANING,DESCRIPTION,ENABLED_FLAG,
START_DATE_ACTIVE,END_DATE_ACTIVE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,L
AST_UPDATE_LOGIN,
LAST_UPDATE_DATE,SOURCE_LANG,SECURITY_GROUP_ID,VIEW_APPLICATION_ID,TERRITORY
_CODE,
ATTRIBUTE_CATEGORY,ATTRIBUTE1,ATTRIBUTE2,ATTRIBUTE3,ATTRIBUTE4,ATTRIBUTE5,AT
TRIBUTE6,ATTRIBUTE7,ATTRIBUTE8,ATTRIBUTE9,ATTRIBUTE10,ATTRIBUTE11,ATTRIBUTE1
2,ATTRIBUTE13,ATTRIBUTE14,ATTRIBUTE15,TAG,LEAF_NODE)
values ('XXHDNL_SHIPPABLE_POSTCODES','US','CF47 9','CF47 9','CF47 9','Y',
to_date('23-JUL-09','DD-MON-RR'),null,1090,to_date('23-JUL-09','DD-MON-RR'),
1090,47626,to_date('23-JUL-09','DD-MON-RR'),'US',0,3,null,null,null,null,nul
l,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
I need to change the values in the field LOOKUP_CODE,MEANING,DESCRIPTION
there are 80 values it takes time to insert one one value each time.
The values are like this
DE1,DE1,DE1
D3,D3,D3
DE5,DE5,DE5
DE11,DE11,DE11
DE12,DE12,DE12
DE13,DE13DE13
How to do this?
Any help is highly appricatble
Thanks & regards
Srikkanth.M
Edited by: Srikkanth.M on Jan 14, 2011 6:04 PMIf the code is autonumeric ... then try
insert into FND_LOOKUP_VALUES (LOOKUP_TYPE,
LANGUAGE,
LOOKUP_CODE,
MEANING,
DESCRIPTION,
ENABLED_FLAG,
START_DATE_ACTIVE,
CREATED_BY,
CREATION_DATE,
LAST_UPDATED_BY,
LAST_UPDATE_LOGIN,
LAST_UPDATE_DATE,
SOURCE_LANG,
SECURITY_GROUP_ID,
VIEW_APPLICATION_ID
SELECT 'XXHDNL_SHIPPABLE_POSTCODES',
'US',
'DE' || level,
'DE' || level,
'DE' || level,
'Y',
to_date('23-JUL-09','DD-MON-RR'),
1090,
to_date('23-JUL-09','DD-MON-RR'),
1090,
47626,
to_date('23-JUL-09','DD-MON-RR'),
'US',
0,
3
from dual connect by level < 81 -
How use insert more than query (select)
insert into FISH_FAMILIES (id,code ,SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
SELECT ROWNUM,to_char(ROWNUM) FROM dual CONNECT BY LEVEL <= 43,
select distinct FAMILY, ARABIC_DESCRIPTION,LATIN_DESCRIPTION from FISH_SPECIES ,
select distinct IS_FAMILY from FISH_SPECIES
iam dont know format insert use
More than select ??????ali_alkomi wrote:
ORA-01427: single-row subquery returns more than one row
insert into FISH_FAMILIES(SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
values ( (select distinct FAMILY from FISH_SPECIES) ,(select ARABIC_DESCRIPTION from FISH_SPECIES) ,(select LATIN_DESCRIPTION from FISH_SPECIES),(select distinct IS_FAMILY from FISH_SPECIES
))You were given an answer to that over on your other question:
How Generating Series Of Numbers Without use Sequences
If you are haivng a problem understanding the answers, do not start a new thread, otherwise the same people who were helping you originally may not know you are still having a problem.
To insert multiple rows of data you cannot use the VALUES clause of the INSERT statement (as it tells you in the documentation if you read it).
You need:
INSERT INTO ...
SELECT ... FROM ... UNION ALL
SELECT ... FROM ... UNION ALL
SELECT ... FROM ... etc.or, in your case you would need something more simply like
insert into FISH_FAMILIES(SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
select fs.family, fs.arabic_description, fs.latin_description, fs.is_family
from fish_species fs
Maybe you are looking for
-
I am trying to install a harddrive into the second bay of my 2005 Power Mac G5. The drive I'm installing is a Western Digital Caviar black 2TB. It is and SATA drive and the same one has installed successfully on my newer G5 tower. I plug the drive in
-
Error during import of XSD file in message mapping
When i try to import an XSD file from desktop during message mapping I am getting a following error 'display problem'. "Root element not found. Root Schema only describe type defintions. Cannot opent this XSD." Is there any direct or work around way
-
How do I find what's included in the $9.00 monthly plan.
I just purchased the $9.00 monthly plan for both features but now I am confused about what is included with my plan. Most likely because there are so many things to try or purchase when I first logged on. Thank you for your help!
-
Installing software and keep getting admin level access error -
I'm trying to install some software on my mac and I get the prompt for network admin passowrd ao I log in and I get an error that says I need admin prioveledges or higher. I go to system prefs and that account has admin rights. I created a new acount
-
Schema Parser - Can not build Schema
I keep getting the following exception error: "Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''" This is the Code which throws the error : Reader r = cvcontext.Request.getReader(); InputSource in_src = new InputSource(r); try