WITH the clause can be used with an insert statement?

Hello

Can I use a SQL with a clause of an insert

Something like
create table tem (l number)

insert into tem
(l)
(with 
  t0  as 
  (Select exp_amt as t0 from exp_main)
select t0 from t0)
The declaration itself works fine, but it throws the following error with insert
Error at Command Line:8 Column:17
Error report:
SQL Error: ORA-32034: unsupported use of WITH clause
32034. 00000 -  "unsupported use of WITH clause"
*Cause:    Inproper use of WITH clause because one of the following two reasons
           1. nesting of WITH clause within WITH clause not supported yet
           2. For a set query, WITH clause can't be specified for a branch.
           3. WITH clause can't sepecified within parentheses.
*Action:   correct query and retry
The reason why I use this format is because we strive to produce sqls to Analytics and queries are generally formed like this. So instead of change requests in bulk, I was hoping that we were able to insert it.

Please notify

Thank you
Sun

Published by: ryansun on August 14, 2012 01:59

>
create table tem (general number);
table created TEM.

insert into tem (l)
with t0
as
(Select 1 as double t0)
Select t0 t0;

1 inserted rows.

Tags: Database

Similar Questions

  • iPad Pro. The keyboard can be used remotely (not physically attached) or you can use a standard apple wireless keyboard

    iPad Pro. The keyboard can be used remotely (not physically attached) or you can use a standard apple wireless keyboard

    I assume that you mean the keyboard built into the 'smart cover' - it must be in contact with the iPad.

    A wireless keyboard Apple has been reported as working with an iPad Pro. Plug Apple for the new State of "magic keyboard" that it requires a Mac with os x 10.11 or later - he does not mention the iPads. Third-party Bluetooth keyboard should work.

  • Volumes of the App can be used without Horizon?

    Volumes of the app can be used without Horizon? It seems to be a case of using these features, not only for desktop computers. Say for R & D working with quick auto tests departments deploying the latest versions etc. Can a unique environment of vSphere be used? If so, these deployment tasks can be controlled by a PLC?

    Yes, and with other brokers. Volumes of app is also sold as a stand-alone product.

    More info in the FAQ.

    http://www.VMware.com/files/PDF/appvolumes/VMware-appvolumes-FAQ.PDF

  • Cannot close My Documents, the window keeps reopening and is always in the foreground, can not use another program

    I have a serious problem with windows Explorer. It keeps opening in 'My Documents' and it is impossible to close. I can close it but it immediately reopens seconds - not enough time to click anywhere else.

    It is also blocked in the foreground so that I can't use any other program, the cursor will move immediately to My Documents as the active window. I can't even go to start - run - or Start - logoff or anything because as soon as I click anywhere on the active window is new my documents.

    I don't know what happened, but I think my 1 years pressed a weird combination of keys while she was playing with my laptop. It is not a virus, because I ran a full Kaspersky scan and everything seems fine. Everything works fine in safe mode as well. It's only when I go in the "unsafe" mode I have this problem. I tried to watch the registry key as he pointed to similar problems on these forums, but I can't find a userinit registry key. What can I please?

    Hello nikitaghosh,

    I know that you have performed a comprehensive analysis of Kaspersky and nothing came, but have you run any malware removal software?  I've included a link for the removal of malicious software below, please let us know status.

    Microsoft Answers:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/antivirus-2010-removal-the-virus-is-blocking/36d884f4-5fcc-46E9-9F27-cf189c131608

    Thank you

  • What features of the police can be used to hide text in the compiled version?

    With the help of HTML HR, x.5, generating HTML Help. Project was created by importing from a Word the .hpj HR project.
    In Word HR, I could put a feature of police of "hidden". While I could see the text in developer mode, the text was not visible in the compiled version.
    Y at - it anyway to achieve using HTML HR?

    Uh, why not use the Tags to build? You can still see the text, but just make sure that your statement to exclude excludes your output text. I have a LOT of content in the systems that I've marked with a tag to build the Admin, never to be seen by anyone but me my help.

    Am I misunderstood the question?

  • error in pseudo-column "DECODE" can be used within an SQL statement

    Hi gurus,

    Your help is grealty appreciated. Please help me.


    I'm trying to see if I can use the function decode as below and get the error, here below vPlatformfrom value would be QA or MTS


    vDataBase1 :='@'|| Decode (vPlatformfrom, 'STD', 'STD', 'QA', 'QA')


    Before we check function NVL to a single platform, but now we need the database based on the platform is here.

    -vDataBase1 :='@'|| NVL (vPlatformto, 'MTS');

    Error:

    PLS-00204: pseudo-column "DECODE" or function may be used within an SQL statement

    > So, here, instead of the decode function, I can use this case as below:

    Well... you can, but why?  In your CASE, you simply return the same value as the variable.

    You might as well use: vDataBase1: = vPlatformfrom;  It would reach exactly the same thing.

    If vPlatformfrom can be a null value, you will need to decide what database to use or an exception.  I think you're original code (NVL) were probably more correct, but I can't decide which.

    (and don't bother selecting double, it is an unnecessary sql statement which must be analysed, etc..)

  • Help! Using CFQUERYPARAM in INSERT statements causes NullPointerException?

    Hi all

    I've never used cfqueryparam with the INSERT statement in cfquery before, but now whenever I have it try, I have a NullPointerException.

    My code:

    < name cfquery = "insertDocEntry."
    result = "docEntry."
    DataSource = "#application. PrimaryDataSource #">"
    INSERT INTO tbl_conference_document
    (SessionID, DocTypeID, symbol, language, Title)
    VALUES)
    < cfqueryparam value = "" #Form.SessionID # "cfsqltype ="cf_sql_numeric">,"
    < cfqueryparam value = "" #Form.DocTypeID # "cfsqltype ="cf_sql_numeric">,"
    < cfqueryparam value = "" #Form.Symbol # "cfsqltype ="cf_sql_varchar">,"
    < cfqueryparam value = "" #Form.Language # "cfsqltype ="cf_sql_varchar">,"
    < cfqueryparam value = "" #Form.Title # "cfsqltype ="cf_sql_varchar">"
    )
    < / cfquery >

    I cfdump the form field and all values are defined, but I always get this error:

    The web site, you access has met an unexpected error.
    Please contact the site administrator.

    The following information is for the creation of Web sites for debugging purposes.
    Error occurred while processing request
    The system has attempted to use an undefined value, which usually indicates an error programming, either in your code or system code.

    NULL pointers are another name for undefined values.

    The error occurred in D:\ColdFusion9\wwwroot\Infobase\Document\execConferenceDocUpload.cfm: line 28

    26 :       <cfqueryparam value="#Form.Symbol#" cfsqltype="cf_sql_varchar">,
    27 :       <cfqueryparam value="#Form.Language#" cfsqltype="cf_sql_varchar">,
    28 :       <cfqueryparam value="#Form.Title#" cfsqltype="cf_sql_varchar">
    29 :     )
    30 :    </cfquery>

    Resources:

    BrowserMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; RV:1.9.2.8) Gecko/20100722 Firefox/3.6.8
    Remote address127.0.0.1
    Referrerhttp://localhost:8501/Infobase/document/uploadConferenceDoc.cfm
    Date/time3 Aug 10 11:48
    Stack trace
    at cfexecConferenceDocUpload2ecfm1876641633.runPage (D:\ColdFusion9\wwwroot\Infobase\Document \execConferenceDocUpload.cfm:28) to cfApplication2ecfc1086350920$ funcONREQUEST.runFunction (D:\ColdFusion9\wwwroot\Infobase\Ap plication.cfc:230)

    java.lang.NullPointerException
         at coldfusion.sql.QueryTable.populate(QueryTable.java:325)
         at coldfusion.sql.QueryTable.populate(QueryTable.java:261)
         at coldfusion.sql.Executive.getRowSet(Executive.java:466)
         at coldfusion.sql.Executive.executeQuery(Executive.java:1248)
         at coldfusion.sql.Executive.executeQuery(Executive.java:1008)
         at coldfusion.sql.Executive.executeQuery(Executive.java:939)
         at coldfusion.sql.SqlImpl.execute(SqlImpl.java:341)
         at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:843)
         at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:533)
         at cfexecConferenceDocUpload2ecfm1876641633.runPage(D:\ColdFusion9\wwwroot\Infobase\Document\execConferenceDocUpload.cfm:28)
         at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
         at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
         at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
         at cfApplication2ecfc1086350920$funcONREQUEST.runFunction(D:\ColdFusion9\wwwroot\Infobase\Application.cfc:230)
         at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
         at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
         at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
         at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
         at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
         at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
         at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490)
         at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
         at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88)
         at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:280)
         at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:338)
         at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
         at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
         at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
         at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
         at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
         at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
         at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
         at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
         at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
         at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
         at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
         at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
         at coldfusion.CfmServlet.service(CfmServlet.java:200)
         at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
         at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
         at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
         at jrun.servlet.FilterChain.service(FilterChain.java:101)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
         at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
         at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
         at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    This error does NOT occur when I don't use cfqueryparam, but my problem is, I need to insert a downloaded file in the database as a BLOB (code not shown above because it is a problem even without BLOB), so far the only way I know how is it to use CFQUERYPARAM.

    Am I the only one seeing this here? So far I only tried to use my CF9 local server (developer edition), the server of CF9 on my colleague has the same problem.

    Here we have a very tight schedule and I really wasn't expecting this kind of problems, so any help and advice is much appreciated!

    Thanks in advance!

    ZHU, Jia

    Yes, I don't think there was a data type mismatch. I was just trying to get more clues on the circumstances in which the error occurs. In other words, it happens every time cfqueryparam is used... or simply when certain types of data are used. Because surely it should not happen.  Maybe a level driver problem, what I do usually is set up a few test cases fast, ideally very simple.  Then use this to determine if there are exceptions to the main issue.  Thus, for example, things like the exception occurs even with a simple insert a column with a varchar column base

    INSERT INTO TestTable (VarcharCol) VALUES ( )

    Also, have you experienced the same results with the jtds driver?

  • The 1473R CAN be used with the real-time operating system of NOR?

    Hello, I am trying to determine if I can use the OR 1473R framegrabber PCIe FPGA in a PC based computer time real OS OR. Anyone know if this is possible? So I think that it should appear to the OS in real-time as a target FPGA that can transfer the data via DMA, but I wanted to make sure the drivers would work in real time of NEITHER.

    I appreciate any info on this!

    lukepike,

    Yes, you can use this device with real-time OS of NOR.

  • Personal settings don't are not loading. by default the generic profile so the programs can be used, but data is missing. What should I do?

    Laptop computer startup after detached work and returned to the House, I got the message "personal settings don't is not loading" and he went to a generic profile by default similar to what you see when you turn on a new computer for the first time.  I use Windows XP Professional on a Dell Latitude d

    All programs are intact, but all files are absent, including Quickbooks data.  We use Carbonite backup so food won't be a problem; How to bring back the personal settings?

    Thanks for your help!

    It is an easy one.  You probably have a corrupt user profile.  One of the following solutions, you should get back working again...

    "Windows XP problems if your profile is corrupted"
      <>http://support.Microsoft.com/kb/326688 >

    "How to recover damaged Windows XP user profile"
      <>http://support.Microsoft.com/kb/555473 >

    ""Windows cannot load your profile because it may be corrupted"error message when you try to log on Windows XP.
      <>http://support.Microsoft.com/kb/318011 >

    Note also that corrupt user profiles are usually accompanied or caused by the corruption of system files.  After recovery, it would be prudent to run a complete control of the disk (chkdsk) with the /F or /R option to repair corrupt sectors.

    "How to perform the disk error checking in Windows XP"
      <>http://support.Microsoft.com/kb/315265 >

    Note that this can take hours and cannot be interrupted, then perform it when you won't need your machine for awhile.

    HTH,
    JW

  • Satellite L50-B-177 - after upgrading the BIOS can not use the Polish symbols

    Hi, I'm newbie here. This is my first post, so sorry for the plain text.

    I have a problem with the laptop Satellite L50-B-177 1 month of my wife. After update BIOS (from Toshiba Service Station) to version 1.70 I have this problem: it is impossible to use symbols of Polish that comes with ALT + z, ALT + x, ALT + c. other - ALT + a - works normally.

    Problem is the operating system independent (even on the live session of Ubuntu). I understand that this is a specific problem for the location of the Poles, but causes cell useless for my wife (she is a teacher and write a lot of text). As much as I know BIOS downgrade is not available for customers, and the weeks of waiting for the new package of BIOS is out of the question.

    Any suggestions will be appreciated.

    Hello

    This problem occurred imadiately after updating the BIOS?

    Have you tried to set the BIOS settings by default once the update is complete?
    If this isn't it.

    Also, check if the Polish keyboard language was chosen correctly and as a default value.

    Comments are greatly appreciated.

  • HP P3015: ERROR ON THE PRINTER CAN'T USE. There 49.4C02 OF the ERROR AND DO WE ALLOW to ENTER IN THE MENU SETTINGS/AUTO

    OUR LASERJET P3015/CE527A CAME UP WITH THE ERROR 49.C02.  HE WILL NOT ENTER

    MENU/SETTINGS FOR AUTOMATIC RECOVERY.  IT COMES UP WITH THE ERROR AS SOON AS IT IS TURNED

    TURN IT BACK ON AND CANNOT ACCESS THE SETTING.

    This could be a few things-

    First thing I would do, is try to turn the machine off and then remove the network cable from the machine.  Once extracted, try to turn the machine on and see if the error goes away. If so, there are probably a print job corrupted in the queue. Which you can remove by going in Printers and devices - the print driver for the HP - go to 'see what's printing' - right click and delete the tasks in there. If the drivers are not on a server or on your computer, you may wander and find the computer on which the print job is

  • Ink and the slide can be used for general use, but also Adobe applications?

    I would like to buy ink from Adobe and drag and I was wondering if it was compatible for daily use as who would use it for.

    Hey there, jellybob2

    Ink & Slide are compatible with Photoshop and Illustrator sketches draw. Find more info here: ink & Slide Help | Ink and Slide FAQ

    Thank you!

    -Kathleen

  • Satellite P750 / 02L - what the media can drive use?

    Can the Toshiba Satellite P750 / 02L read Blu - Ray media?

    Thank you.

    If your Satellite has BD driver it can read Blu - Ray media?

    Everything must be described in s operating manuals.

  • I forgot the password can't use run as administrator

    I have windows xp. bought to skorea. He has the password before, but was removed when we had the language changed to English. My problem is that I can't run an application as an administrator because he does not accept the empty password. I forgot the password before it reformatted.what I do?
    There are two users when you click Run as administrator (Administrator and user)
    in the control user is the administrator of the computer

    Hello

    1. have you logged as administrator?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/321305

  • I'm trying to secure access so that other people from the outside can not use my internet network. Now it is not guaranteed and I don't know how to change it.

    set up a secure internet access.

    set up a secure internet access.

    Hey esieboohannahdoll

    If you use a router contact the router manufacturer for more information about how to secure your internet connection

    General guidelines read information on google

    http://www.google.com/search?hl=en&source=HP&q=How+to+Secure+Your+Internet+Connection&aq=f&aqi=G1&AQL=&OQ=

    Walter, the time zone traveller

Maybe you are looking for

  • large Inbox file

    HelloI have a problem: I use thunderbird and IMAP protocol on a windows machine 7. On this machine, I have 2 user accounts. One of the accounts have a very large (116 GB) Inbox. What can I do to win some more space on the hard drive? I don't want to

  • Setting BIOS password in the sequence of tasks on new T450 SCCM

    Is there a way that we can set a BIOS password on a SCCM task sequence? I noticed there are scripts to make other changes. The deployment of January 2015 guide says it's a limitation, so I was wondering if there was no change since then. Thank you ve

  • T61p help desperately need! Can't get to reformat and fresh install Win XP

    Hi all I have a Lenovo T61p (6459) Quadro FX 570 m mobile. It came with an installation of Windows XP Professional 32-bit OEM. I try to format the drive and am not having any success. I have not the slightest idea and if all I am doing wrong. Can any

  • Can I attach my Altec speakers to my Pavillion g6 Windows 7?

    Can I just attach my ALTEC speakers to my HP Pavillion g6 in the wearing of headphones? They have an external power supply and a simple little grip like a mini RCA or one for headphones & buds?

  • Season 1 of the Vikings will not play

    I have Windows 7 and bought the season 1 and 2 of the Vikings on my computer. I thought that those that are downloadable to watch later. I click on play, it goes to the player, but said only: "impossible to play. Try again later' this could be a prob