Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6936021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:10:47+00:00 2026-05-27T12:10:47+00:00

I got a select statement working (no syntax errors and returning desired results), but

  • 0

I got a select statement working (no syntax errors and returning desired results), but I get an error when I try to use the same select statement in a view. I figure it has something to do with the “=>” to name the parameters.

select SDO_UTIL.AFFINETRANSFORMS(
  geometry => STRTS.GEOMETRY,
  translation => 'FALSE', tx => 0.0, ty => 0.0, tz => 0.0,
  scaling => 'TRUE', psc1 =>
    MDSYS.SDO_GEOMETRY( 3001, NULL, SDO_POINT_TYPE( 0, 0, 0 ), NULL, NULL),
    sx => 0.8, sy => 0.8, sz => 0.8,
  rotation => 'FALSE', p1 => NULL,
    line1 => NULL, angle => 10.0, dir => 2,
  shearing => 'FALSE', shxy => 0.0, 
    shyx => 0.0, shxz => 0.0, shzx => 0.0, shyz => 0.0, shzy => 0.0,
  reflection => 'FALSE', pref => NULL, lineR => NULL, dirR => 0, 
    planeR => 'FALSE', n => NULL, bigD => NULL ) AS GEOMETRY 
FROM (
  SELECT 
    MDSYS.SDO_GEOMETRY(3002, NULL, NULL, 
    SDO_ELEM_INFO_ARRAY(1, 2, 1), 
    SDO_ORDINATE_ARRAY(-90, 30, 0, -90, 30, 0))
  as GEOMETRY
  FROM DUAL ) STRTS

I simplified the statement to only use dual to make it easier to reproduce. I have table with linear geometries that I’m going to use instead of the “SELECT … FROM DUAL” and a way to pull a point off the line to use for psc1.

The error I get when using sqldeveloper’s test syntax is

Error(s) parsing SQL: Unexpected token at 45 near =>.

The first “=>” is 45 characters into the string, so I figure there’s just something invalid about using it in the create view.

I pretty sure I can work around this by creating a function that doesn’t use this “=>” syntax, but hoped there was a way to call this oracle function straight from the create view.

Edit: So it appears sqldeveloper/sqlplus have support for something like named parameters. I added comments around the named parameters (/* named_param =>*/) to stop using the named parameter syntax. Now it just a “wrong number or type of arguments” error. Unfortunately, I put all the parameters in the exact order as show in Oracle’s online docs ( from http://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_util.htm#BJEGCCDF ). So I guess this becomes a question of how to find the right order for my function arguments.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:10:48+00:00Added an answer on May 27, 2026 at 12:10 pm

    Yes you can, but only since Oracle 11G. Prior to that, only positional notation was allowed in any SQL statement, which includes view definitions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got 2 select statements, returning data like this: Select 1 col_a col_b Select
GOT error for the following query in MYSQL(version5.1) SELECT year,month,sum(fact_1),sum(fact_2),sum(fact_3),sum(fact_4) from( select year,month,fact_1,fact_2,0 as
I've got a select statement that joins a couple of tables and grabs some
I've got a stored procedure with a select statement, like this: SELECT author_ID, author_name,
I got a join select statement and i only need the last modified field
I've got the following SQL statement that I am working on. I've trimmed it
If you've got a very complicated SELECT statement and some records aren't included because
I've got quite a few SQL statements like such: SELECT foo FROM things WHERE
I've currently got multiple select's on a page that are added dynamically with ajax
I've got a select with two 'special' options, a bit like this: <select> <option

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.