SQL code - call a column that has a reserved as the name keyword
Hi all
As seen in the title, one of the tables in the database that I am trying to extract information from one of its columns is a reserved keyword.
I am trying to run SQL on Oracle SQL Developer test code.
The simple code, I'm running is:
Select number
of specific_table
As a result:
ORA-01747: invalid column, table.column, or user.table.column specification
01747 00000 - "invalid user.table.column, table.column or column specification.
Is there some sort of way to get around this?
Any help would be greatly appreciated.
Thank you!
Yes, use the names in quotes:
SQL > create table tbl (number)
2.
create the table tbl (number, number)
*
ERROR on line 1:
ORA-00904: invalid identifier
SQL > create table tbl ("number")
2.
Table created.
SQL > insert
2 tbl
3 values (1)
4.
1 line of creation.
SQL > select number
2 tbl
3.
Select number
*
ERROR on line 1:
ORA-00936: lack of expression
SQL > select "number".
2 tbl
3.
number
----------
1
SQL >
SY.
PS you need to find the EXACT (creating) the spelling of the column name. Use the DESC or select XXX_TAB_COLUMNS.
Tags: Database
Similar Questions
-
Hi everyone, yet once landed upward with a problem.
After trying many things to myself, finally decided to post here...
I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.
It works very well with a single table. The problem now is that I cannot do the same with 2 tables.
Because the tables have the same number of columns and the columns names.
Here are the 2 tables with column names:
Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2) SL_NO SL_NO MODEL MODEL END_DATE END_DATE U-1 U-1 U-2 U-2 U-4 U-4 .......... ........ .......... ........ U-20 U-20 U-25 U-25 Given that the tables have the same column names, I get the following error :
402 error at line 103, column 4
required aliases in the SELECT list of the slider to avoid duplicate column names.
So how to export data to excel that has 2 tables with the same number of columns and the column names?
Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?
Help me with this please.
Thank you.
Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?
see you soon
-
have a column that has values separated by commas... and I'm s
Have a column that has values separated by commas... and I'm trying to separate.
I am trying to create a stored procedure... The 11g xe version. apex .and version 4...
Here is the part of the code... I can't do a procedure. causes my intervention consist with the clause...
create or replace procedure ins_adv_invoice
(mmagazine_no number, madvtno number, missueno number, varchar2, varchar2, varchar2 msalesman_code mpagenumber msection)
is
cursor cx is with testa as
(select name of the advertiser pagenumber)
Select regexp_substr (pagenumber, ' [^,] +', 1, rownum) result
the advertiser
connect by level < = length (regexp_replace (pagenumber, ' [^,] + "")) + 1
where advt_no = madvtno;
Start
for xxx CX
loop
insert into adv_invoice (magazine_no, advtno, adissue, section, opinion, salesman_code)
values (mmagazine_no, madvtno, missueno, msection, xxx.result, msalesman_code);
end loop;
end;
But when I run the present... it creates no procedure. . I receive he following error...
LINE/COL ERROR
-------- ----------------------------------------------------
5/14 PL/SQL: statement ignored
9/69 PL/SQL: ORA-00933: SQL not correctly completed command
SQL >
Still not able to understand... If anyone can help...
Thank youChange the query to swap the last two lines:
... cursor cx is with testa as (select pagenumber name from advertiser) select regexp_substr(pagenumber, '[^,]+', 1, rownum) result from advertiser where advt_no = madvtno connect by level <= length(regexp_replace(pagenumber, '[^,]+')) + 1; ...
-
MacBook Pro (15-inch, mid 2010) OPERATING SYSTEM OS X El Capitan (Version 10.11.2) Processor Intel Core i7 2.66 GHz Memory 8 GB 1067 MHz DDR3 Startup disk Macintosh HD Graphics Intel HD Graphics 288 MB The past several times I completely stopped my MacBook Pro and booted back up Xcode is the first thing to open, and it opens a window, I've never seen before called 'ICloudSetupView.strings '.
I went to check if Xcode is checked as a startup item (I usually put off because I do not often use XCode) and Xcode is not even on my list of items that opens automatically when I boot.
HOWEVER, there is a new startup item called "ICloudSetupView.strings" that has a "sort" of "Strings File".
I traced the file in its location and found several others with the timestamp date same creation and now I'm worried.
The path to the file is:
System/Library/PrivateFrameworks/FinderKit.Framework/versions/A/Resources/SK. LP roj/ICloudSetupView.strings
The file has only the following 2 lines of code (technically 1 with overflow) that you can see in the image:
bplist00 "_uHD " Driveo-7F-8GX.title_H4f-Te-Tzu.title\iCloud
3 @
A screenshot of the Xcode file that opens and my preferences of start programme is attached.
I'm quite worried about it, especially because it IS NOT defined as part of open automatically but it is.
I searched online and found no something like this.
Anyone know what it is?
Or what the code does?
Is this a virus or spyware?
It is not spyware. Simply remove it from your login items.
-
I need help to activate my computer but I don't have the code. I bought a computer that has been renovated and the owner said that he has updated the computer with Windows 7, but the computer is now ask for an activation code. I tried to contact the guy but he won't answer. Is it possible to check the activation without the code? I need help and do not want to pay a hundred dollars more.
Is there a COA sticker that is attached to the machine?
If so, check to see what edition and version of Windows machine is licensed to:
COA certificate of authenticity:
http://www.Microsoft.com/howtotell/content.aspx?PG=COA
??
What is the certificate of authenticity for Windows?
http://Windows.Microsoft.com/en-us/Windows7/what-is-the-Windows-certificate-of-authenticity
Also:
Please run the Microsoft Genuine Diagnostics Tool then copy and paste the results into an answer here for further analysis:
http://go.Microsoft.com/fwlink/?LinkId=52012 -
Hello
in our society, we have an old domain controller has been disconnected for more than 200 days, probably in a State of thumbstone, it still appears in our network. We wanted to know what is the best way of disused this server, we connect to our network and do normal downgrade process.
How do you decommssion a domain controller that has not been on the network of more than 200 days?
Could you please write me back to my work email or call me on my work phone? Job information are below.
Hello
The business support, you can find forums on TechNet, see the following links:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
I did my credit card has been removed, and now I make a new card.
But now my membership has been changed as a free membership.
So, I want to pay again.
But now, I don't have a plan that has been used in the past.
How can I do?
I want a quick answer
Hello
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
I have a complaint on my Mac Book Pro. I bought my computer in January 2016 and it has two problems: the first is the display of the retina that has many traces of the keyboard and as many times it freezes. I have looked for help on the local Apple Store and support too, but it did not help. I would like you help me solve this problem.
Thank you.
Kelly
Your machine is still under warranty, so you should take it to your local Apple store for repairs. Function late in January, you bought it, you still have phone without support. If you can't find any help on the Apple Store, then I don't know what you expect to find here. We have no way to check for problems you have described or any additional hardware, etc.
-
Install Windows Vista Service Pak 2 upgrade
I received the error code 0 x 80070490, which has a link on the home page, but it is not working properly and it took me nowhere.
http://support.Microsoft.com/kb/958044
You receive an error code "0 x 80070490" when you use Microsoft Update or Windows Update Web sites to install updates
https://support.Microsoft.com/OAS/default.aspx?PRID=13014&Gprid=582034&St=1
Free unlimited installation and compatibility support is available for Windows Vista, but only for Service Pack 2 (SP2). This support for SP2 is valid until February 26, 2010.
It comes with Vista, upgrade install and activate Forum.
You will get the best help for any problem of Update/Service Pack update Vista Forum; the link below:
http://social.answers.Microsoft.com/forums/en-us/vistawu/threads
When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.
In this way, you will receive the best help.
See you soon.
Mick Murphy - Microsoft partner
-
Unable to connect laptop (wireless) broadband
Recently, I changed to wired broadband. When I try to connect to the internet using my laptop, I get an error code. He says that I'm connected to the internet, but I am unable to connect.Remove any preconfigured network settings wireless then rescan to make new connection settings
Hope this will do the needfull
Please let us know
-
It seems that has most all of the icons in my folder/window "network connections." programs can be corrupted, how to restore these
I have been using a wireless adapter & also I can't access the utility of windows for wireless connections either, the network, I used is not visible on my computer but my laptop can connect to it
My OS is windows XP home
Hello
Not 'obsessed' all history essay for where the penalty is at the moment.
Here's how, http://www.ezlan.net/wireless.html
-
Cannot find the left column that used to be on the documents and photo files.
Cannot find the left column that used to be on the documents and photo files. On this missing column I know was there before, had options fax, copy and other things we could do with these files. I want to get that back. Thank you.
With my Documents folder open, go to Toolsand then click on Options files . On the general tab, tasks section, choose Show tasks in folders.
I would like to know if it works. Thank you.
-
bought a new windows 7 service pack 1 as my windows that has been said in the laptop it was not authentic, but I bought a 64 bit instead of 32 can I use a 64-bit on my laptop
my laptop is a lenovo
On Sunday, October 5, 2014 12:59:11 + 0000, dougdgp wrote:
bought a new windows 7 service pack 1 as my windows that has been said in the laptop it was not authentic, but I bought a 64 bit instead of 32 can I use a 64-bit on my laptop
my laptop is a lenovo
Depends entirely on this laptop you have. If it has a 64-bit processor
You can use 64-bit Windows. If a 32-bit CPU, you can't.If you don't know you have, hold down the Windows key and press
Break | Break. It will tell you if you have a 32-bit
processor or 64-bit processor. -
I just want to know when you buy a software that has a compatibility with the operating system windows 8, applies to windows 8.1system automatically?
Former title: compatibility
Yes, he does. Windows 8.1 is compatible with Windows 8.0. In fact, it can run almost all programs built for 7, Vista and XP as well.
-
Mr President
This is the page of the glassfish Server
How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.
In the jdev web module are
[11: 09:38] wrote the Web for F:\backup of AshCMS\AshCMS\ViewController\deploy\AshCMS_ViewController_webapp.war application Module
[11: 10:33] wrote the Module Enterprise Application to F:\backup of AshCMS\AshCMS\deploy\AshCMS_Project1_AshCMS.ear
[11: 10:33] Application deployment...
[11: 14:24] Application deployed successfully.
[11: 14:24] time to deployment: 8 minutes, 11 seconds
[11: 14:24]-deployment is complete. ----
what url in the browser.
Concerning
Mr President.
I run my application on built-in web logic server and get the url from there
http://localhost:7101 / ViewController/faces/MainPage
then simply change the localhost of 7101 to 8081 as below
http://localhost: 8081, ViewController, faces, MainPage
and it works
Concerning
Maybe you are looking for
-
Messenger me guard disconnection
Since I installed the latest update, my Messenger keeps disconnecting me. It does it randomly, but does generally not last long until it starts and then it's really annoying.
-
I just bought new pc, I installed xp in it.de error I installed it twice today in my pc I have 2 os (windows xp 2)... now I want to reset my pc as new pc so that I can install again new windows xp.please tell me how to remove the two old windows xp t
-
When I turn on the pc, I get this message. Can I have a virus?
-
Problem with less available graphics memory.
HI all, I have Mobile Intel(r) 945 Express Chipset Family on my laptop ACER ASPIRE 9410-4317, have the 160 GB HARD drive and 1 GB of RAM. the report on my graphics card is Intel(r) Graphics Media Accelerator Driver for Mobile report Date of report: 1
-
How to change email Windows Live's Hotmail to MSN account?
WANT TO CHANGE MY EMAIL FROM HOTMAIL TO MSN ADDRESS AND DO NOT KNOW HOW DO