Solved

oracle- 10.2.04

Posted on 2016-08-31
3
50 Views
Last Modified: 2016-08-31
Can we combine the following in one script

Updating oracle table from values taken from another table and also alter the table to make that column not null?

Help Appreciated.
0
Comment
Question by:anumoses
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 250 total points
ID: 41778168
I will recommend to use the MERGE statement if the whole row should be inserted from the source table.
0
 
LVL 4

Assisted Solution

by:Abhimanyu Suri
Abhimanyu Suri earned 250 total points
ID: 41778176
Please note, UPDATE and ALTER are two distinctive commands, DML and DDL respectively.

They can not be put together as one sql statement unless a procedure/package
0
 
LVL 6

Author Closing Comment

by:anumoses
ID: 41778405
thanks
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
constraint check 2 56
Oracle Verification of DataPump Export and Import 17 68
Creation date for a PDB 5 63
error starting form builder in 11g 2 26
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question