I am trying to execute following query but i am getting a sql exception
i do not understand where i went wrong. it is saying invalid column name but i have given all fields and table names correctly, please help me out.
java.sql.SQLExc eption: ORA-00904: invalid column name
[CODE=java] rs=st.executeQu ery("SELECT EP.EMP_ID,EP.EM P_PASS,EC.CNAME ,EC.MEMAIL,EC.T YPE,EC.CPERSON, EC.DESIG,EC.WUR L,EC.EADDR,EC.E CITY,EC.ESTATE, EC.EZIPCODE,EC. ECOUNTRY,EC.EMB NO,EC.PHNO,EC.F AXNO FROM EMP_LOGIN EP,EMP_COMPANY_ DETAILS EC WHERE (EP.EMP_ID='"+t his.empid+"'AND EP.EMP_PASS='"+ this.epwd+"'AND EP.EMP_ID=EC.EM P_ID)");[/CODE]
if any one knows solutuion. please mail me at xxxxxxxx@xxxxxx xx.xxx
thank you
i do not understand where i went wrong. it is saying invalid column name but i have given all fields and table names correctly, please help me out.
java.sql.SQLExc eption: ORA-00904: invalid column name
[CODE=java] rs=st.executeQu ery("SELECT EP.EMP_ID,EP.EM P_PASS,EC.CNAME ,EC.MEMAIL,EC.T YPE,EC.CPERSON, EC.DESIG,EC.WUR L,EC.EADDR,EC.E CITY,EC.ESTATE, EC.EZIPCODE,EC. ECOUNTRY,EC.EMB NO,EC.PHNO,EC.F AXNO FROM EMP_LOGIN EP,EMP_COMPANY_ DETAILS EC WHERE (EP.EMP_ID='"+t his.empid+"'AND EP.EMP_PASS='"+ this.epwd+"'AND EP.EMP_ID=EC.EM P_ID)");[/CODE]
if any one knows solutuion. please mail me at xxxxxxxx@xxxxxx xx.xxx
thank you
Comment