Its throwing error. The error details is given below.
Error details:
declare
*
ERROR at line 1:
ORA-12899: value too large for column
"SCOTT"."EMP_MA STER"."EMP_VALU E" (actual: 10, maximum: 7)
ORA-06512: at line 13
User Profile
Collapse
-
Here a is the unique id and this should be entered by the user so Iam using this and now one more thing is that I want to update the emp_value and for the particular emp_svce_id with the result from the below query
SELECT SUBSTR(emp_svce _id,3) INTO b FROM employee_master WHERE emp_code ='PRODCD'and emp_svce_id=a;
And want to print the emp_value and emp_code; will it be possible below is what I tried.
[code=oracle]...Leave a comment:
-
The mistake I did is passed 'a' instead of giving a. Thanks for guiding me...
Have a nice weekend..Leave a comment:
-
This is the code Iam using in plsql where the emp_svce_id (employee service id) has to be printed which is CCDB00123. I want to cut the first two character and store DB00123 below is the script Iam trying can you please help me....
[code=oracle]
declare
a employee_master .emp_svce_id%ty pe;
b employee_master .emp_svce_id%ty pe;
begin
a:='&emp_svce_i d';
select emp_svce_id into a from employee_master...Leave a comment:
-
Thanks its working now one more thing is that I have many columns and in that I want to access an single record with unique id and cut the first two letters using the number in the query is it possible.
eg:
emp_id
----------
ABssCC123
I tried the below logic but its not working...
Trim(to_char(em p_id, 'A%'),2)Leave a comment:
-
I tried creating but the result does not getting updated could you please help me out.Leave a comment:
-
Yes we have to store the record in log table. Please clarify me.Leave a comment:
-
Thanks thats Perfect.....
Is there any way to store the rowid before updating.
Please guide me to get through the issue.Leave a comment:
-
To update a record using rowid in duplicate row.
Hi,
want to write an plsql code to update a single record using rowid where all the rows are duplicated could someone help me in this case.
Prod_service_id Location feature ord
----------------------- ------------ ---------- ----
PP23456 Chennai Fast2 B77
PP23456 Chennai Fast2 B77
Now I need to update one of the record to madurai.
...
No activity results to display
Show More
Leave a comment: