Database Administration (MOSC)

MOSC Banner

Question

edited Oct 9, 2012 10:03PM in Database Administration (MOSC) 4 commentsAnswered ✓
I am trying to do a insert into select statement that only gets the first 10 characters of a field.  I am inserting this into a table that already has data.  Im getting an error can't insert  where primary is null but I  have a where clause comparing primaries.

Insert into demographics(name)

Select substr(usr_system_name, 0,10)

From user_permissions

where demographics.dem_primary_key = user_permissions.usr_primary_key

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center