Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
searching1
Starting Member
3 Posts |
Posted - 2008-09-18 : 16:02:03
|
| When I try to execute the below SQL, I get and error message:ORA-00927: missing equal sign. I've searched several sites, but cannot find the solution to this issue. Please help!UPDATE TALENAMESET SUBSTR(FIELD1,6,1) = FILED2 WHERE EMPNO = 5551212; orUPDATE TALENAMESET SUBSTR(FIELD1,6,1) = 2 WHERE FIELD2 = 1; |
|
|
hey001us
Posting Yak Master
185 Posts |
Posted - 2008-09-18 : 16:17:15
|
| what you are trying to do?hey |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
searching1
Starting Member
3 Posts |
Posted - 2008-09-18 : 17:15:33
|
| hey001us: I'm trying to update the last digit of field1 to match field2. It's the substr that giving me problems. If I update using the entire field it works find.field1 = 5555551 field2 = 0I want to update field1 to 5555550X002548: please excuse the typo, that is the actual code.Does anyone know why I get this error "ORA-00927: missing equal sign"?Thanks for the effort. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
searching1
Starting Member
3 Posts |
Posted - 2008-09-18 : 17:27:20
|
| Thanks tkizer. Excuse the post. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-09-19 : 04:04:58
|
quote: Originally posted by searching1 When I try to execute the below SQL, I get and error message:ORA-00927: missing equal sign. I've searched several sites, but cannot find the solution to this issue. Please help!UPDATE TALENAMESET SUBSTR(FIELD1,6,1) = FILED2 WHERE EMPNO = 5551212; orUPDATE TALENAMESET SUBSTR(FIELD1,6,1) = 2 WHERE FIELD2 = 1;
That should beUPDATE TALENAMESET FIELD1= SUBSTR(FIELD1,1,LENGTH(FIELD1)-1)||FILED2 WHERE EMPNO = 5551212; As said, post your Oracle related questions at Oracle forums like www.orafaq.comMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|