Insert data from a field in another field in another table
I am trying to copy the records from the source table
in the dgpercentagedatachart table
the domain name is feederid
So that's what I came:
INSERT INTO dgpercentagedatachart (feederid)
Select source.feederid
Of the source;
This is the error I get
Error from the 1 in the command line:
INSERT INTO dgpercentagedatachart (feederid)
Select feederid
Source
Error report:
SQL error: ORA-01400: cannot insert NULL into ("GISELECTRIC". "" "" DGPERCENTAGEDATACHART '. "" OBJECTID')
01400 00000 - "impossible to insert a NULL value in (%s)."
I check that the two fields accept the NULL value, and they both said YES.
What can I do?
Excellent example. I get it.
But, how can I put the id of object with it?
Object_Id is the feeder_id # unique
You can question him in the same table:
INSERT INTO dgpercentagedatachart (feederid, objectid)
Select source.feederid, source.objectid
Of the source;
Tags: Database
Similar Questions
-
Create the trigger to insert data from one user to another user in same Databas
Dear Sir, I created a trigger as follows
CREATE OR REPLACE TRIGGER TRIGGER1
BEFORE INSERTING
ON table1
FOR EACH LINE
BEGIN
INSERT IN THE TEST. TABLE2
VALUES (: NEW.) COLUMN1,: NEW. COLUMN2,: NEW. COLUMN3,: NEW. COLUMN4);
END;
/
I want here to insert my user to user Test data. In this Situation when I Execute The above Trigger it shows error PL/SQL: ORA-00942: table or view does not exist
Help, pleaseWhat do you mean by run the trigger?
Do you compile?
Can be open as a TEST and do the following and try to compile your code of the trigger again.grant insert on TEST.TABLE2 to youruser;
See you soon,.
Manik. -
How can I insert data from another table into a table containing a timestamp column
How you insert data from another table in a table if the target table contains a timestamp column. I tried to set the default value of GETDATE() column in the target table, but it does not work.
I use MS SQLSorry, I managed to get around this by inserting null as the value
-
How to handle data from multiple fields
Hi all
My data are:FldName FldTypeCode Text
In the user interface, I give all the data of three fields with refcursor. now in HQ DB happening all the values to be updated at the same time.
Sandya 02 nothing
Raj 01 12/Oct/2008
Lokesh 03 12546
Harish 04 12565.35
King 01 12/Nov/2007
Cobra 02 texttype
(Q) now my question is how to update all values.
For example: create procedure procdname (ip_allvalues in typerecord)
is
Start
-statements;
end;
the procedure input parameter above can manage all data from three fields as they pass.
(1) if the parameter handle, should what kind I create?
(2) I need how can I update multiple records at once?
Please can any body...
Thanks in advance...sanjuv wrote:
But when it goes to day it must pass all records at once (lines have almost 55) at a time not possible to update for all records but also not good to create input parameters for the procedure 55. If it has past a table how can I handle this situation.Why do you need to update all records at once? And what is blocking you implements a loop on the user interface which, for each changed row, submits an update of the DB? Note that you will get no improvement with a bulk operation when entering comes from a user interface.
Alessandro Bye
-
Insert data from one table to another
I have two tables SALES_MASTER and SALESMAN_MASTER which is described below.
SQL > desc SALES_MASTER;
Name Null? Type
----------------------------------------- -------- ----------------------------
NO VARCHAR2 (6)
NAME VARCHAR2 (20)
PIN NUMBER (8)
CITY VARCHAR2 (20)
VARCHAR2 (20) STATE
SQL > desc SALESMAN_MASTER;
Name Null? Type
----------------------------------------- -------- -----------------------
SALESMANNO VARCHAR2 (6)
SALESMANNAME VARCHAR2 (20)
ADDRESS1 VARCHAR2 (30)
ADDRESS2 VARCHAR2 (30)
CITY VARCHAR2 (20)
PIN NUMBER (8)
VARCHAR2 (20) STATE
SALAMT NUMBER (8.2)
TGTTOGET NUMBER (6.2)
YTDSALES NUMBER (6.2)
REMARKS VARCHAR2 (60)
I want to insert data from SALESMAN_MASTER (2nnd table) to SALES_MASTER(first table). I want to insert only two columns NO, NAME and PIN code. All of these columns are compatible. I tried this command. But it's not working. Help me.
SQL > insert into SALES_MASTER
2 (NO., NAME, PIN CODE)
3 values
4. Select SALESMANNO, SALESMANNAME, PIN code
5 SALESMAN_MASTER;
Select SALESMANNO, SALESMANNAME, PIN code
*
ERROR on line 4:
ORA-00936: lack of expressionINSERT INTO SALES_MASTER ( NO , Name , PINCODE ) SELECT SALESMANNO , SALESMANNAME , PINCODE FROM SALESMAN_MASTER;
Kind regards
Christian Balz -
Need some ideas on the copy of the data from one schema to another.
Dear all,
I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
Example:
I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
Maybe this copy of data may occur once a month, or on request.
I want to have this done by a procedure.
I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
Suggest me so if you can give me the best logic or solution.
Thanks in advance...
Concerning
SureshGSKumar wrote:
Dear all,I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
Example:
I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
Maybe this copy of data may occur once a month, or on request.I want to have this done by a procedure.
I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
Suggest me so if you can give me the best logic or solution.I don't know why you don't want to opt for EXP/IMP.
As an alternative, if you have a link DB between Production and Test pattern (which I seriously doubt), you can use the MERGER to a copy of data from Production to Test Delta.
a. INTRODUCE IN test_schema.table_name SELECT sequence_columns, column_list FROM (SELECT column_list FROM prod_schema.table_name LESS SELECT column_list from test_schema.table_name)
Column_list must not contain columns that contain sequence values because they may differ and result in an incorrect result; Therefore, this is taken into account in the outer query rather than Inline mode.
b. MERGE STATEMENT
c. FALL of test_schema.table_name. CREATE test_schema.table_name as SELECT column_list from prod_schema.table_name; -A way very neat to copy all the data, provided you do not keep any changes to test the tables in the schema.However, you mentioned to find existing records based on the primary key; IMO, primary key is normally a sequence (may be alphanumeric) and its value on env Production and Test may defer or even can have different attributes, therefore, I find it incorrect to match only the primary keys. I would say to match the key attributes.
If you want to follow the last update/insert for a record, you can add a column that puts the time of last modification. In this way, you can track the changes of a column. Another alternative would be to use a check to the table.
Let us know your thoughts or concerns, so that help can be provided.
I suggest that you read and follow {message identifier: = 9360002}.
If you will be useful if you can provide all the information required in advance to help us provide you with a quick resolution. -
Best way to move data from one page to another within the app
Hi all as I started to write that and was way to complicated to explain in full without a novel.
Brief description. I use the query string that begins in the parent (from href in JSON) window must then be moved in the iframe url when moving to other pages to avoid security as a page and iframe is conflicting http and https. and are not accessible... It seems that there must be a better way.
So my question is what is the best way in a platform open to move data from one page to another?
You do it this way, it's in the menu.json, but when you work within the iframe and if your loading pages in applications using vairable relative URLS cross they come through.
Discovered only this framework using the browser and you can se the construction and scope of all URLS used.The apps are sandboxed you cannot access aything in the parent frame, this is a feature of derliberate if something you can not do.
As I said, you have a few methods to your own data storage space.
-
Copy data from one schema to another. Reopen the Question
Hello
I had asked this question earlier to copy data from tables of one schema to another in the same database using the database link. In my previous post have mentioned below.
Now I am faced with the question for the remote copy of database
I have created a DB connection between my local system and the remote database. with the chain of connection as shown below
CREATE THE DATABASE PUBLIC LINK "MERU_DEV_LOCAL_DEV".
In the above script
CONNECT TO MERUDEV IDENTIFIED BY MERUDEV WITH THE HELP OF "MERUPROD";
I try to copy remote database to my local database tables using the script below.LOCAL DEVELOPMENT scheme IS
REMOTE schema is MERUDEV
network_link DEVELOPMENT impdp = schema MERU_DEV_LOCAL_DEV = MERUDEV remap_schema = MERUDEV:DEVELOPMENT TABLE_EXISTS_ACTION = REPLACE
But the copy of the table does not occur. What could be the problem? Please suggest me or do I need to modify the script
Thank you
SudhirYou can:
-monitor the BONE with ps - ef
-monitor data pump: jobs are dba_datapump_jobs and dba_datapump_sessions
-monitor with logops: v$ session_longops -
copy data from one database to another
Hello
I want to copy data from one database to another.
I have two patterns such as
dev1/dev@ORCL
DEV2/dev@DCEL
I have same tables dev1 and dev2 (tables)
but I have not given in dev2 (tables).
now, I want to copy dev1 (tables) in dev2 (tables).You can also use the database link:
select * from dev1.emp@orcl;
What database are you connected to?
You must create and use the links in the database for all other databases.For example if you are connected to the database A and to retrieve data from database B, you must create a connection of database in base B
create database link B connect to
identified by using 'B'; Then you can retrieve data from database B with
select * from [yourschema.]yourtable@B;
This will work only for tables that are visible to the user
that you used in the definition of database link. Published by: hm on 10.08.2011 22:15
-
transfer of data from one server to another server
transfer of data from one server to another server... How is possible?
We used to transfer data of one cube to another using... report script... then load rule... so can we use even for that?
but
I would like to know any other comments and other means (like to explore)If you move the range of data to load into the different cube, then you can use report script or calc extrcat data and can use the rule files to load the data.
If you move the data to load into a cube replicated in another environment, you can take the lev0 data and can do the free form of loading. -
Sending data from one component to another
I want to send data from one component to another.
Both are on the page of Main.mxml
What is the best way to do it (without going into a frame)
Who send data up to the main.msml via an event then complex treatment of vars public and pick up in the second pane, but is it possible to go straight?
Thank you
Dan
Once the element keeps one reference to another. Or you set it to a global var shared by two components.
C
-
transmission of data from one container to another
Hello
Let's say I have two containers (Container1 = application, Container2). Container1 receives data from user, do some search database and displays Container2 with database search results.
-Container1 (call and display)-> Container2
Below shows how I use a bindable variable in container1 for transmitting data of container1 in Container2. Also shows how to display Container2 of container1.
<! - Container1 - >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML ">
....
[Bindable] public var foo:String = 'bar ';
....
private void loginHandler(event:LoginEvent):void
{
mycontainer2 = new Container2();
mycontainer2. Name = "mycontainer2";
this.addChild (mycontainer2);
}
< / mx:Application>I am data access in Container2 as follows:
<! - Container2 - >
{mx.core.Application.application.foo}
T1) is there a better way to transfer data from one container to another and to access the data?
Q2) is the only way to call and display of the container1 Container2?
Q3) how can I return to container1 Container2, i.e. Container2 call and display container1
Container2-(back to)-> container1
Best practices call for the use of custom events to share data between components. Here is my message from Flex 3 cookbook on the theme:
http://cookbooks.Adobe.com/index.cfm?event=ShowDetails&PostID=15466
To easily switch between containers 1 & 2 use a ViewStack, the gold standard for this interaction and manipulate the selectedIndex and selectedChild property:
http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=navigators_3.html
If this post has answered your question or helped, please mark it as such.
-
data from one field to another field of text on the next page
Hi all
Hi I have a form that contains data from the data binding, the thing is the data maps to a certain text field and if this field is filled in, it should continue on the text field located on the page immediately after this one. the reason for using the text field instead of subform and make repeating is that the customer does not change the position and the structure of other fields as a result of this area, they are OK with the amount spilled in the following text field.
is there a script for the same disease in Java script or form Calc.
Thanks in advance.
de1209
It is not as simple as it sounds. You won't be able to split the field during bonding time. The entire string must go on the ground and only after that he completed the biinding can change us around. A colleague of mine did for an interactive field and it's a very complicated code. Here is a link to his blog entry that describes what she did:
http://blogs.Adobe.com/lcdesigner/2008/07/an_example_of_splitting_text_a.html
But this is only part of the problem... once separate you the information in two areas that you need to recombine into one field that the data submitted can represent correctly again. If you reverse the process in a preparatory stage.
Make sense?
Paul
-
How to get data from text fields in double.
Here is the sample code that I had done with,
var textf:textField; for(var i:int = 0;i<=7;i++) { textf = new textField; this.addChild(textf); textf.name = "textdata"+i; textf.x = 500; textf.y = 50+50*i ; } nextbtn:button = new button();this.addChild(nextbtn)nextbtn.x = 400;nextbtn.y = 500;nextbtn.addEventListener(MouseEvent.CLICK,getdata); function getdata(e:MouseEvent):void { trace(textf.text) }
From the code above will add six textfields, but in the next button function, it has to be traced back all the data in the fields of text I typed, but the code shown next button only the last textfield data are drawn, all data can be recovered, how do I get the data of all the textfields remaining...
Please help me,
Thanks in advance
You can also watch the event 'target' to determine the object that generated the event.
-
Inserting data from one table to another table
Hello
I have the following SQL where I am updating a table by adding new data from another table, but without success.
INSERT INTO
() TOP_PROSPECTS
COMMON_ID
DATE_ADDED
REVIEW_RANK
EVAL_DATE
PM_ASSIGN
WHY_NOTES)
SELECT
t.COMMON_ID
t.DATE_ADDED
t.REVIEW_RANK
t.EVAL_DATE
t.PM_ASSIGN
t.WHY_NOTES
Of
TEMP_IVAN_MARY t
WHERE
COMMON_ID <>t.COMMON_ID
Any suggestions?
Thank you.
Published by: user13822709 on August 14, 2012 09:14
Published by: user13822709 on August 14, 2012 09:15Is that what you're trying to do with the insert. I think there may be a sign {noformat}<{noformat}{noformat}>{noformat} missing in the where clause. This site eat those, so you need to use the equivalent! = post here.
If I'm wrong about the missing trader, then it looks like you want to insert rows in temp_ivan_mary that are not already in top_prospects. If Yes, then you need something like:
insert into top_prospects (common_id, date_added, review_rank, eval_date, pm_assign, why_notes) select t.common_id, t.date_added, t.review_rank, t.eval_date, t.pm_assign, t.why_notes from temp_ivan_mary t where t.common_id not in (select common_id from top_prospects where common_id is not null)
Function index and data available volumnes etc. then a mergr can be more effective. Something like:
merge into top_prospects p using (select common_id, date_added, review_rank, eval_date, pm_assign, why_notes from temp_ivan_mary) t on (p.common_id = t.common_id) when not matched then insert (common_id, date_added, review_rank, eval_date, pm_assign, why_notes) values (t.common_id, t.date_added, t.review_rank, t.eval_date, t.pm_assign, t.why_notes) from temp_ivan_mary t
John
{noformat}{noformat}>
Maybe you are looking for
-
Site Web auto find on firefox 4
In firefox 3.6 I could type for example "avatar imdb" in the address bar and it would take me to the page on avatar the movie on imdb.com but in firefox 4 need me just to google How can I put it as if it was in firefox 3.6?
-
I use Safari 5.7.1 on a recently upgraded to Windows 10 PC and I continually get notified that my version of Safari is obsolete, but I can continue to use it by ignoring the message, what I do. How can I find the latest version of Safari?
-
Hi all I am currently taking 6 pressure measurements, convert and then send HAVE up to 6 current AO, so I'll have continuous samples for each channel. I got error 200609, which wants to increase the size of buffer when buffer selected size: 1 and Min
-
Impossible to install Vista Service Pack 2, affirms the need to install Service Pack 1 first
I try to install Vista Service Pack 2 automatically, and it is said to be complete after 5 seconds. I have check and don't have Service Pack 1 installed. I am trying to download and install Service Pack 2 manually, and it tells me I have to install
-
Computer will not start after the installation of Windows Vista SP2
After downloding and installing Windows Vista SP2 on ACER laptop for my daughter, I can no longer start the computer. Initially registered startup C:\\Windows\System32\drivers\ecache.sys as corrupt file repair. Change BIOS to boot first from the op