Column exist but ResultSet.getString(String) return invalid column name
With oracle 7 db the ResultSet.getString(String) works fine but after the upgrade to oracle 8 db it return invalid column name. ResultSet.getString(int) method works fine.
Is this a bug in the driver?
Thanks
-Reda
Yes I'm 100 % sure that the columns exist.
-RedaWell then maybe it's a bug in the Oracle driver. Lord knows it wouldn't be the first time that's happened.
Similar Messages
-
ResultSet.getString(String) doesn't return the right text from database
Hi everybody,
I'm trying to read some text in Portuguese from a MS-Access database, but the special characters for Portuguese aren't correctly translated by ResultSet.getString(String).
Here's my piece of code:
private static void fetchEquipamentoEstabelecimento()
try
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(
" SELECT Eqp.NumSerie, Eqp.Estabelecimento, Estab.Nome, Estab.Cidade, Eqp.Data, Eqp.LPN " +
" FROM Equipamento Eqp, Estabelecimento Estab " +
" WHERE TabPreco = 23 " +
" AND Eqp.Estabelecimento = Estab.Estabelecimento " +
"ORDER BY NumSerie DESC");
while(rs.next())
String nome = rs.getString("Nome");
System.out.println(rs.getLong("NumSerie") + " " +
rs.getDate("Data") + " " +
rs.getString("LPN") + " " +
nome + " " +
rs.getString("Cidade"));
stmt.close();
catch(SQLException ex)
printSQLException("fetchEquipamentoEstabelecimento()", ex);
The output of this piece of code is 1 record joined from tables Equipamento and Estabelecimento:
111222333 2001-12-15 JHK Pal<X>cio Cristal Guarda
where the <X> is the greek letter beta. I was expecting a
portuguese character which is an a with an accent: � (I hope the character was correctly displayed for you)
I tried replacing
String nome = rs.getString("Nome");
with
String nome = new String(rs.getString("Nome").getBytes(),codepage);
with codepage="Cp860" (MS-DOS Portuguese)
and codepage="Cp037" (USA, Canada (Bilingual, French), Netherlands, Portugal, Brazil, Australia)
but other strange characters were displayed instead of the a with an accent.
In the MS-Access table Estabelecimento, the column Nome has a Data Type of Text.
I'm using:
- JDK 1.2.2
- MS Access 2000 (in Windows 2000)
MS Access 97 (in Windows NT 4.0).
Any help is deeply apreciated.Hi!
When you establish connection to database, try explicitly give instructions about what encoding use your DB, e.g.:
// connection properties
Properties connInfo = new Properties();
connInfo.put("user", username);
connInfo.put("password", password);
connInfo.put("charSet", "Cp1251"); // enter your codepage!!!
// getconnection
Connection db = DriverManager.getConnection(dataurl, connInfo); -
RsultSet getString(String) returning next row with WL8 and Oracle drivers
When using the following function with the SQL: SELECT A, B, C FROM D
WHERE A=E and i call the campoString("A") i received the expected value
for the campoString("B") and so on.
public String CampoString(String s) {
int i = 0;
String sr;
try {
System.out.println("Campo a buscar:"+s);
sr = rsVentasTotales.getString(s);
System.out.println("Valor:"+sr);
catch(SQLException _ex) {
sr = "vacio";
if(sr == null)
sr = "vacio";
if((i = sr.indexOf('\n')) >= 0) {
if(i > 0)
return sr.substring(0, i - 1);
else
return "DATO ALTERADO";
} else {
return sr;
Oracle latest drivers, and Oracle Server 7, WebLogic platform (workshop) 8.1
public int Conectar() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url, usuario, password);
comando = con.createStatement();Carlos de Luna Saenz wrote:
Same result putting the jar at the beggining of the classpath...:-(
WLS Production Mode=
.You need a semicolon after "ojdbc13.jar".
Joe
CLASSPATH=C:\bea\weblogic81\samples\workshop\SicPros\SicProsv35\WEB-INF\lib\ojdb
c14.jarC:\bea\WEBLOG~1\server\lib\weblogic_knex_patch.jar;C:\bea\WEBLOG~1\common
\lib\log4j.jar;C:\bea\WEBLOG~1\server\lib\debugging.jar;C:\bea\WEBLOG~1\server\l
ib\knex.jar;C:\bea\WEBLOG~1\javelin\lib\javelin.jar;C:\bea\WEBLOG~1\server\lib\w
lw-lang.jar;;C:\bea\JDK141~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_s
p.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\server\lib\ojdbc14
.jar;C:\bea\WEBLOG~1\server\lib\ant\ant.jar;C:\bea\JDK141~1\jre\lib\rt.jar;C:\be
a\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\
pointbase\lib\pbclient44.jar;;C:\bea\WEBLOG~1\server\lib\webserviceclient.jar;C:
\bea\WEBLOG~1\server\lib\webserviceclient+ssl.jar;C:\bea\WEBLOG~1\server\lib\xbe
an.jar;C:\bea\WEBLOG~1\server\lib\xmarshal.jar;C:\bea\WEBLOG~1\server\lib\xqrl.j
ar;C:\bea\WEBLOG~1\server\lib\netui\netui-compiler.jar;C:\bea\WEBLOG~1\server\li
b\wli.jar;C:\bea\WEBLOG~1\server\lib\wlxtrt.jar;C:\bea\WEBLOG~1\server\lib\fop.j
ar;C:\bea\WEBLOG~1\integration\lib\wlai-server.jar;C:\bea\WEBLOG~1\integration\a
dapters\sample\lib\sample-eis.jar;
Greetings.
Joe Weinstein wrote:
Ok.
Once you get this working, I will have some suggestions that
will make this run much faster. For now, I think the issue
is the driver version. We package an old oracle thin driver
inside our weblogic.jar, so you need to get oracle's latest
appropriate driver, and edit the start-weblogic script so
the driver you want comes before the weblogic.jar in the
-classpath argument for the java line that starts the server.
PS:
I am looking at the code, thank you, but you still haven't
explicitly said what problem you're having!
thanks
Joe
Carlos de Luna Saenz wrote:
The problematic class is, there is no weblogic code on it, the
project i am on is to migrate a iPlanet app to a web logic server:
If you need the JSP using this class please let me know. The
application uses not standards, taglibs or anything besides .java
files and .jsp files.
package externos;
import java.io.PrintWriter;
import java.sql.*;
import java.util.Date;
public class sicprosR{
public String strSQL;
public String er;
Connection con;
private ResultSet rsVentasTotales;
String url;
CallableStatement ps;
Statement comando;
protected String usuario;
protected String password;
public boolean estado;
public sicprosR() {
ps = null;
url="jdbc:oracle:thin:@17.3.5.101:1521:dbx1";
usuario="xxxxx";
password="xxxx";
estado = false;
public Date CampoDate(String s) {
Object obj = new Date();
try {
obj = rsVentasTotales.getDate(s);
catch(SQLException _ex) { }
return (Date)obj;
public double CampoDouble(String s) {
double d;
try {
d = rsVentasTotales.getDouble(s);
catch(SQLException _ex) {
d = 0.0D;
return d;
public int CampoInt(String s) {
int i;
try {
i = rsVentasTotales.getInt(s);
catch(SQLException _ex) {
i = 0;
return i;
public String CampoString(String s) {
int i = 0;
String sr;
try {
System.out.println("Campo a buscar:"+s);
sr = rsVentasTotales.getString(s);
System.out.println("Valor:"+sr);
catch(SQLException _ex) {
sr = "vacio";
if(sr == null)
sr = "vacio";
if((i = sr.indexOf('\n')) >= 0) {
if(i > 0)
return sr.substring(0, i - 1);
else
return "DATO ALTERADO";
} else {
return sr;
public boolean Commit() {
try {
con.commit();
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return false;
return true;
public int Conectar() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url, usuario, password);
comando = con.createStatement();
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return -1;
try {
rsVentasTotales = comando.executeQuery(strSQL);
catch(SQLException _ex) {
return -2;
estado = true;
return 1;
public int Conectar(int i) {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url,
Estructura.usuario, Estructura.clave);
comando = con.createStatement();
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return -1;
try {
rsVentasTotales = comando.executeQuery(strSQL);
catch(SQLException _ex) {
return -2;
estado = true;
return 1;
public boolean Ejecuta(int i) {
if(i == 1)
try {
rsVentasTotales = comando.executeQuery(strSQL);
catch(SQLException _ex) {
return false;
else
try {
comando.executeUpdate(strSQL);
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return false;
return true;
public int Sig() {
try {
if(rsVentasTotales.next()) {
estado = true;
return 1;
} else {
estado = false;
return 0;
catch(Exception _ex) {
estado = false;
return -1;
public boolean Siguiente() {
try {
if(rsVentasTotales.next()) {
estado = true;
return true;
} else {
estado = false;
return false;
catch(Exception _ex) {
estado = false;
return false;
public String convierteCantidadLetras(double d, String s) {
String s1 = Double.toString(d);
s1 = truncaADosDecimales(s1);
try {
ps = con.prepareCall("{ call
get_Palabra_De_Valor_Numerico(?,?,?) }");
ps.setString(1, s1);
ps.setString(2, s);
ps.registerOutParameter(3, 12);
ps.execute();
return ps.getString(3);
catch(SQLException _ex) {
return "No se pudo realizar la conversion";
public String convierteCantidadLetras(double d, String s,
PrintWriter printwriter) {
String s1 = Double.toString(d);
s1 = truncaADosDecimales(s1);
try {
ps = con.prepareCall("{ call
get_Palabra_De_Valor_Numerico(?,?,?) }");
ps.setString(1, s1);
ps.setString(2, s);
ps.registerOutParameter(3, 12);
ps.execute();
return ps.getString(3);
catch(SQLException _ex) {
return "No se pudo realizar la conversion";
public boolean inicio() {
try {
rsVentasTotales.first();
return true;
catch(SQLException _ex) {
return false;
public String truncaADosDecimales(String s) {
int i = 0;
String s1 = "";
i = s.indexOf(".");
if(s.length() <= i + 3) {
s1 = s.substring(i + 1, s.length());
} else {
s1 = s.substring(i + 1, i + 3);
s1 = s1.substring(0, 2);
if(s.substring(i + 1, i + 2).equals("0"))
s1 = "0" + s1;
s1 = s.substring(0, i) + "." + s1;
return s1;
Joe Weinstein wrote:
Hi! I need two more things from you, please:
1 - A full statement of what problem you're having.
2 - More of the code. All I see here is you are getting
a connection directly from Oracle's driver, and code which
does a ResultSet.getString() call.
I need to see the logic from getting the connection, to creating
the statement, to executing the query, to doing ResultSet.next()
for each row and getting the row data for each.
It seems that this is either an application code or jdbc driver
problem because no weblogic code is being used, so it could probably
be duplicated in a small stand-alone program (without any weblogic
stuff).
Joe
Carlos de Luna Saenz wrote:
When using the following function with the SQL: SELECT A, B, C FROM
D WHERE A=E and i call the campoString("A") i received the expected
value for the campoString("B") and so on.
public String CampoString(String s) {
int i = 0;
String sr;
try {
System.out.println("Campo a buscar:"+s);
sr = rsVentasTotales.getString(s);
System.out.println("Valor:"+sr);
catch(SQLException _ex) {
sr = "vacio";
if(sr == null)
sr = "vacio";
if((i = sr.indexOf('\n')) >= 0) {
if(i > 0)
return sr.substring(0, i - 1);
else
return "DATO ALTERADO";
} else {
return sr;
Oracle latest drivers, and Oracle Server 7, WebLogic platform
(workshop) 8.1
public int Conectar() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url, usuario, password);
comando = con.createStatement(); -
Help on Merge Statement ,I got 'ORA-00904: invalid column name' Error
Pls help
In Oracle 9i i implement the following qry
MERGE INTO jobs A
USING (select order_no,jOB_SEQ_NO from jobs_dlt) B
ON (A.ORDER_NO = B.ORDER_NO and A.JOB_SEQ_NO =B.JOB_SEQ_NO )
WHEN MATCHED THEN
UPDATE SET
A.ORDER_NO= B.ORDER_NO ,
A.JOB_SEQ_NO= B.JOB_SEQ_NO
WHEN NOT MATCHED THEN
INSERT (
A.JOB_SEQ_NO ,
A.ORDER_NO
VALUES (
B.JOB_SEQ_NO ,
B.ORDER_NO
but i got 'ORA-00904: invalid column name' Error
JOBS table Contain the above Column
how i implement the Merge Statment
Thanks in advance
By
SekarI seem to recall this error being spuriously (well unhelpfully) thrown if you tried to UPDATE a key that you used in the ON clause, but I could be mistaken.
For us to recreate this you would need to supply the exact version and scripts to create the tables in question. -
What is the list of possible OS names and OS versions, returned by OS name property?
My application is supposed to work a little bit differently running on different versions of Windows. For now the problem is that the possible strings returned by OS name and OS version (APP reference properties) are not specified in LV help. I've tested it for Win2k and got back "Windows NT" as a name and "5.0" as a version number. What should I expect for Windows ME, Windows 95, Windows XP?
Appreciate your responses, thanks for everybody who may have a clue of what it should be.System
Version9X
VersionNT
WindowsBuild
ServicePackLevel
Windows 95 (Gold)
400
950
Windows 95 + OSR
400
Windows 95 + OSR2
400
Windows 95 + OSR2.5
400
1111
Windows 98 (Gold)
410
1998
Windows 98 Second Edition
410
2222
Windows Me
490
3000.1
Windows NT 4.0 (Gold)
400
1381
Windows NT 4.0 + Service Pack 1
400
1381
1
Windows NT 4.0 + Service Pack 2
400
1381
2
Windows NT 4.0 + Service Pack 3
400
1381
3
Windows NT 4.0 + Service Pack 4
400
1381
4
Windows NT 4.0 + Service Pack 5
400
1381
5
Windows NT 4.0 + Service Pack 6
400
1381
6
Windows 2000
500
2195
Windows 2000 + Service Pack 1
500
2195
1
Windows XP
501
2600
Windows XP + Service Pack 1
501
2600
1
Windows Server 2003 family
502
Greater than 2600
I got List, but i cant sure LabVIEW is the same as above.
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer -
Invalid member name [H] -2147218908 during incremental refreshes
Hello,
We're running an incremental refresh in Planning Desktop (9.2.0.2) but it errors out with: Invalid member name [H] -2147218908
The Essbase log file mentions the same. Has anybody run in to this? I'm not sure where to look. Everything seems to be working fine.
Essbase 9.2.0.2 on AIX
Planning 9.2.0.2 on Windows 2003 R2Running into the same error. Going to run a full refresh, and will let you know my results
-
"invalid column name" using resultset.getString()???
I had a sql query against oracle db:
select table1.field1, table1.field2, table2.field3
from table1, table2
where table1.field1=table2.field1;
i got a valid resultset and i can enum the resultset by rs.getString(colnum). However, when i try to use rs.getString(table1.field1), i get a sql exception: "invalid column name". has anybody seen this before?
TIAHi,
You can also modify your query and use the keyword "As" to give your fields another name :
select user.name as userName, admin.name as adminName
from user, admin
rs.getString("userName");
rs.getString("adminName"); -
Invalid column name - fixed by inserting a carriage return - Why?
I'm writing some JSP pages and am executing a statement that retrieves values from three tables.
When executing the statement I receive the error
java.sql.SQLException: Invalid column name
I just want to state here that ALL the column names are definitely correct. I attempted to isolate the problem using my SQL*Plus Interface.
When copying and pasting the SQL that was used (I put the SQL statement into the HTML to allow me to do this) into SQL*Plus it also come up with the error. I found that if I broke up the statement it would run. Specifically if I placed a carriage return (by hitting enter) prior to the 'A' of the AND operator and then copied and pasted into SQL*Plus it would work!
I thought the problem was related to bad syntax in the outer join operator. But removal of the outer join operator and making it a EQUI JOIN situation still gave the same results. I tried the use of brackets to 'help' the DB engine figure it out - silly I know, but it didn't work anyway :(
I've tried this out on UNIX in SQL*Plus where the query was on one line and it worked fine. I've tried it on Oracle 8.1.5 SQL*Plus & Oracle 8.1.7 SQL*Plus on Win2000 and WinNT and no go.
It has also been tested on an Oracle 7.3.4 DB and no go either.
Remember I'm only using SQL*Plus to find out why it is not working - I'm actually attempting to execute this via JDBC (classes12.zip Oracle9 version) in my JavaBean. I can't place a carriage return to 'fix' the problem, and I'm assuming that I shouldn't either.
I've pasted the SQL below (both non-working and working versions). I was going to paste the output of DESC on the associated tables should you too would rule out a mispelled column name, but I didn't want to put anyone off with a long post.
If you can provide any advice I would be very appreciative.
Darren James
Show Me Technology
SQL> SELECT UNIT.Asset_Number,Model,PERSON.Novell_User_Name FROM
UNIT, UNIT_USERS, PERSON
2 WHERE UNIT.Hardware_Reference_Number =
UNIT_USERS.Hardware_Reference_Number(+) AND UNIT_USERS
.Novell_User_Name = PERSON.Novell_User_Name (+) ORDER BY Make,
Model, Asset_Number,Serial_Number,
UNIT.Hardware_Reference_Number,Unit_Type,PERSON.Last_Name,PERSON.Fi
rst_Name,PERSON.Novell_User_Name;
3 /
WHERE UNIT.Hardware_Reference_Number =
UNIT_USERS.Hardware_Reference_Number(+) AND UNIT_USERS.Novel
ERROR at line 2:
ORA-00904: invalid column name
REM -- Using the one with an return prior to the AND
SQL> SELECT UNIT.Asset_Number,Model,PERSON.Novell_User_Name FROM
UNIT, UNIT_USERS, PERSON
2 WHERE UNIT.Hardware_Reference_Number =
UNIT_USERS.Hardware_Reference_Number(+)
3 AND UNIT_USERS.Novell_User_Name = PERSON.Novell_User_Name
(+) ORDER BY Make, Model,
4 Asset_Number,Serial_Number,
5
UNIT.Hardware_Reference_Number,Unit_Type,PERSON.Last_Name,PERSON.Fi
rst_Name,PERSON.Novell_User_
Name;
ASSET_NUMBER
MODEL
NOVELL_USE
10023445
desktop raider
tabisho
10023445
desktop raider
pjblee
100349864
VEi8
SQL>Ok. I feel ashamed that the answer was so simple and not the
problem I thought it was. But in the interests of perhaps
preventing someone else doing the same silly thing....
The error was caused by using a wrong name when 'getting' the
values int the return ResultSet object. (eg using getString
("s.Some_Name") when it should have been getString
("s.Another_Name").
Interestingly the error did occur in one of our SQL*Plus
versions. Why we still are not sure, but since this was a silly
error on my part, I'm sure a similarly silly reason will be the
cause there two.
I appreciate those who responded though. It is a great resource.
Darren James
I'm just guessing here, but could it be some sort of a size thing? Could it be that, if you don't break up line 2, somehow
it gets truncated or wrapped at an inappropriate place? To test
this theory, you might try putting the carriage return in front
of the ORDER BY, instead of in front of the AND, and see if it
has the same effect. If you do get it figured out, please
satisfy our curiosity and let us know. -
How is ResultSet.getString() SUPPOSED to return BINARY types?
Hello All:
I got a legacy code to support. The code uses ResultSet.getString() to retrieve BINARY data. ORACLE JDBC driver converts binary data to their hexadecimal representation. It also behaves "correctly" in this sense when I use setString() on prepared statement for BINARY field: it converts valid hexadecimal strings to binary data and rejects strings which contains non-HEX digit characters with SQLException (btw if I give it an odd number of hexadecimal digits, it adds a zero digits FROM THE LEFT e.g. DDDDDDDDDDDDDDDDDDDDDDD becomes 0DDDDDDDDDDDDDDDDDDDDDDD).
My question is: is all this behavior documented somewhere in JDBC specification and if not how other databases and drives behave on this matter. The code will be possibly used with other databases and I want to know if I can expect some definite behaviour or this is all implementation-specific? I found in JDBC specs that getString() can be used for BINARY data -- but not what it is supposed to return? Even Oracle JDBC documentation does not specify the behavior I discovered -- it just works like that but can I be sure it will be preserved in further versions? Should we raise an issue with Sun to clarify the JDBC specs?
Any ideas/references? Please share your experience with different databases/drivers. Mine is Oracle 8.0.5.1.0, JDBC driver version is 9.0.1.0.0.
PavelYou can download the JDBC docs from the sun site. I didn't find anything in it which documented the behavior you indicated.
-
ResultSet.getString() returning null.
I'm using a PreparedStatement to select 1 row/10 columns from a
table. The first time I getXXX() my values all is fine. I close
the result set, clear the parameters and set the one variable on
the statement and executeQuery. I can now read about 3 getXXX()
and then the remaining getString() calls return null.
The problem occurs when using the 1.1.1 thin driver but NOT when
using an jdbcodbc driver.
Any thoughts?
Thanks, Frank
PS: Please respond to my email address of [email protected]
as well.
nullI believe there is/was a bug where once a NULL column value was
retrieved, it would corrupt the ResultSet data (i.e. you will get
NULL from then on). Not sure if this was resolved in a driver
patch yet or not. Try downloading the latest version of the THIN
driver.
null -
Invalid column name in query string - using Format function
In my post just before this one the problem was solved for writing a query string using a date range. The rest of the query string includes the same date field (Call_Date) but formatted as 'MMM-YY'. I get an invalid column name error when I add this field to the query string. Here is the rest of the query string:
strSql = "SELECT Format(CALL_DATE,'mmm-yy'), " _
& "HOME_REGION FROM CCC2.CASE_EPRP " _
& "WHERE (HOME_REGION = 'NCR') AND " _
"(CALL_DATE >= to_date( '1/1/2002', 'MM/DD/YYYY' )" _
& "AND CALL_DATE <= to_date( '2/28/2003', 'MM/DD/YYYY' ))"
In the Access Query tool I can include this field
Format(CALL_DATE,'mmm-yy')
and the query runs fine (I just need to make it dynamic using ADO). But in my ADO query string above, I get the invalid column name error. Is there a way I can include
Format(CALL_DATE,'mmm-yy')
in my ADO query string? I appologize for not being more familiar with Oracle Sql. Any help greatly appreciated.
Thanks again,
RichThank you very much for your reply. I think I'm getting closer to the solution. Just I got an error message
"date format not recognized"
when I add "to_char( call_date, 'mmm-yy' )" to the query string. I tried using all uppercase, but that did not make a difference. Do I need to use to_date inside the to_char maybe?
to_char(to_date(call_date, 'mmm/yy'), 'mmm-yy')
Thanks again for your help.
Rich -
String allocation in ResultSet::getString() issue
Hi all :)
I have been learning the basics of OCCI and I am having a
problem with Debug mode in MSVC. When I retrieve a string from
ResultSet::getString, and the string goes out of scope, I get an
assert about an invalid heap pointer.
I think that somehow the ResultSet object is setting the pointer
inside of the string object in a way which would circumvent the
list of allocations on the debug heap. So that when the string
destructor is called, it tries to free the internal pointer, and
asserts.
Everything works correctly in Release mode.
Is there any suggested way of handling this? Or is there a debug
version of the OCCI?
Here is the simplistic offending code:
while (rs->next())
string username = rs->getString(1);
string passwd = rs->getString(2);
} <--- asserts here
Any help would be great :)
Thanks,
Gerald FishelOCCI has multiple copies of libraries that work with different compiler versions. Please make sure you are using the appropriate version of dll. You can search for this topic on OCCI forum.
C++ Call Interface (OCCI) -
Simple NOT EXIST but returns wrong values
I have been doing this for a couple of month and this makes sense to me but I get the wrong answer.
T1 contains 1 to 10
U2 contains 1 to 5
SELECT T1a.num
FROM T1 T1a
WHERE NOT EXISTS
(select T2b.num
from T1 T1b, U2
WHERE T1b.num = U2.num
GROUP BY T1a.num
I expect to get 6 to 10,
but am getting NO ROWS SELECTED.
Ideas more than welcomeYou are trying to :-
1. Use table T1 twice which is not needed
2. In the inner sub-query, you are using column T2b.num
alias 'T2b' is not defined, in which case you should be
getting SQL Error
(select T2b.num
ERROR at line 4:
ORA-00904: invalid column name
Try This,
1 SELECT T1a.num
2 FROM T1 T1a
3 WHERE NOT EXISTS
4 (select Null
5 from U2
6 WHERE U2.num = T1a.num
7 )
8* GROUP BY T1a.num
Test Db>/
NUM
6
7
8
9
10 -
Can anyone help please!
what this error means by invalid contents: getSchema() == null
when I try to deploy or veryfy, this is what I get:
deployment started : 0%
Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- JDO74041: While deploying 'EJBModuleOnlineRegistration' from 'EJBModuleOnlineRegistration': sun-cmp-mappings.xml exists but has invalid contents: getSchema() == null
; requested operation cannot be completed
D:\Projects\EJBModuleOnlineRegistration\nbproject\build-impl.xml:317: Deployment failed.
BUILD FAILED (total time: 29 seconds)The most probable there are some errors in your sun-cmp-mappings.xml file.
A few similar Q&As:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045366
http://www.netbeans.org/issues/show_bug.cgi?id=59394 -
I have created 3 dashboards, all of which have worked without an error in the past. However, when I run one of the dashboards now the following error message is displayed when the data is retrieved (using QAAWS):
"The document cannot be created or opened. The error code is: FILE EXISTS BUT IS INVALID."
The dashboard is created and all the data appears to be retrieved, but I would like to stop the error message appearing. I have looked on the Web for answers and whilst I can find others asking the same question no answers are posted.
Can anybody help?
Regards
JasonJason,
Were there any update patches installed for Xcelsius or any connected components recently.
Also check the flash player updates.
-Maddy
Maybe you are looking for
-
How do I transfer my iTunes from an old account to a new one?
I had an old computer (PC) that had an old iTunes account linked to it and now would like to transfer, rather merge my old purchases with my newer iTunes account which is managed by my current MAC... any help would be greatly appreciated, thanks!!!
-
Openreach - How I can connect my PC directly into ...
Can you please let me know how i can connect my computer directly to white coloer modem box "Openreach"? Thank you for your advise. Solved! Go to Solution.
-
Number doesn't support applescript!?!
I was sincerely hoping that numbers supported embedded applescript or at least applescript triggers (from checkboxes, buttons, etc). Internal Applescript support was the critical requirement to use it, and replace excel. I was blown away that is does
-
SUCCESS ! 9IAS Infrastructure-SuSE 8.2 Professional
It is finally running. Oracle thew us a slider on this one. You will need to edit your postcfg and change the invocation of oidca to use the 1.3.1 jre. The shell script comes delivered to blow up because it uses the 1.1.8 jre. There is no way she is
-
My sounds keep disappearing in Logic
My sounds keep disappearing on on me in Logic Why and how do I fix the problem