Home Answers Viewqa Java-Beginners SQL QUERY ERROR

 
 


deepti mishra
SQL QUERY ERROR
1 Answer(s)      a year and 2 months ago
Posted in : Java Beginners

Im writing a query which shows error of INVALID CHARACTER

The Query is

Insert into

PMST_EMP_MST(PMSNUM_EMP_ID,PMSSTR_EMP_NAME,PMSDT_DOB_DATE,PMSSTR_GENDER,PMSNUM_DESIGNATION_CODE,PMSNUM_CDAC_EMPID,PMSNUM_DEPARTMENT_ID,PMSSTR_CDAC_EMAILID,PMSSTR_OTHER_EMAILID,PMSNUM_CONTACTNO,PMS_EMERGENCY_CONTACTNO,PMSSTR_LOCAL_ADDRESS,PMSSTR_PERMANENT_ADDRESS,PMSSTR_QUALIFICATION,PMSDT_ANNIVERSARY_DATE,PMSDT_JOINING_DATE,PMSNUM_RELIEVE_DATE,PMSSTR_IP_ADDRESS,PMSSTR_SYSTEM_DETAIL,PMSNUM_IS_ACTIVE,PMSNUM_USER_TYPE,PMSSTR_PASSWORD)  
                    + " VALUES("+user_id+",'"+user_name+"',to_date('"+user_dob+"','dd-mm-yyyy'),"+user_gender+
                    ","+user_designationCode+","+user_CdacId+","+user_deptId+",'"+user_CdacEmailId +
                    "','"+user_otheremailId+"',"+user_contactNo+","+user_emergencyNo+",'"+user_localAdd +
                    "','"+user_Permanentadd+"','"+user_Qualification+"',to_date('"+user_Anniversary+"','dd-mm-yyyy'),to_date('"+user_JoiningDate+
                    "','dd-mm-yyyy'),to_date('"+user_RelievingDate+"','dd-mm-yyyy'),'"+user_IpAdd+"','"+user_SystemDetail+
                    "',"+user_IsActive+","+user_UserType+",'"+user_password+"');";

AND THE DATA WHICH IS INSERTED FROM THE FORM IS THROWING THE ERROR OF INVALID CHARACTER BUT THE SAME QUERY IS RUNNING IN THE DATABASE.

PLEASE HELP ME.

View Answers

March 22, 2012 at 12:15 PM


Syntax of insert query is:

INSERT INTO 'table_name'('field_name', 'field_name'. . .)
VALUES ('field_value', 'field_value'. . .);

For more information, visit the following link:

SQL Queries









Related Pages:
SQL QUERY ERROR
SQL QUERY ERROR  Im writing a query which shows error of INVALID CHARACTER The Query is Insert into PMST_EMP_MST(PMSNUM_EMP_ID,PMSSTR_EMP... THE FORM IS THROWING THE ERROR OF INVALID CHARACTER BUT THE SAME QUERY IS RUNNING
SQL Query - JSP-Servlet
SQL Query   AS mysql backend updation query shows a syntax error. I gave the full query and the generated error here. Please send me the correct query anyone. st.executeUpdate("update stud_detail set name='"+newname
sql syntax error help
sql syntax error help  this query show syntax error .. i am unable to figure it out insert into order (orderdate, dpname, paymethod, tamount...') where is the error ?   Please send the error details and the datatype
error : not an sql expression statement
error : not an sql expression statement  hii I am gettin followin error in connecting to database SQLserver 2005 in Jdeveloper,i m usin struts... = conn.createStatement(); String query = "insert into dbo.guru VALUES
JDBC connection and SQL Query - JDBC
JDBC connection and SQL Query  Hi, I'm reading a all files one... each time. Now I'm trying to execute a query to insert those values into an oracle... or udate Query it is not accepting as the format for them is executeQuery(String
SQL error - JSP-Servlet
SQL error  Hello friends, Can we update a column with referrence to that column value. For example, the query...){ System.out.println("Error occured while updating!!!"); } con.close
Sql Query
Sql Query  Is this query work in Db2 or not ? Select * from FORUM LIMIT 2
Sql Query
Sql Query  Is this query work in Db2 or not ? Select * from FORUM LIMIT 2
sql query
sql query  two tables are emp,loc write a query to display all the emp information whose locname not equal to bangalore
sql query
sql query  hi friend, Im doing a project,in that a main id... numbers of sids.i want to delete the sid based on the mid.for that i need sql query plz help to me
sql query
sql query  hi friend, Im doing a project,in that a main id... numbers of sids.i want to delete the sid based on the mid.for that i need sql query plz help to me
sql query
sql query  hi friend, Im doing a project,in that a main id... numbers of sids.i want to delete the sid based on the mid.for that i need sql query plz help to me
Sql Query
Sql Query  Hi M Navjeet Ghai I want to know How to Show A name(Like Navjeet Ghai And Manpreet Singh Sodhi) of employees from a employee table as N.Ghai & M.S.Sodhi by using sql query
SQL Query
SQL Query  Selecting the third highest salary of Employee without using any subquery?   Here is a query: SELECT salary FROM employee ORDER BY salary DESC LIMIT 2,1
SQL QUERY
SQL QUERY  am a having a table 'PROGRAMMER' with columns... C pascal Bhanu Sql... Pascal Sql Mahesh DBASE Cobol
sql query
sql query  SQL QUERY BROWSER declare @cout00 int declare @cout01 int declare @cout10 int declare @cout11 int declare @c1 float declare @gss float...); this is the query i have written for the table "dpscomp" - station date month
query - SQL
tell me how to write the query in database but not jsp code. thank u
SQL query
SQL query  I need to combine two tables in order to get the values. As an example we have three tables having namely usertable,job table and jobaccess table. In usertable (Userid,Empid,name,Role) details have been stored
SQL Query - SQL
SQL Query  Hi I would like to know how to create a SQL query which would copy values from a field which contains multiple values to an existing... | +-----+-----------+-------------+ Query: INSERT INTO table2 (fruit1, fruit2, fruit3
PHP SQL Query Where Clause
PHP SQL Query Where Clause     ...; from the sql query execution, we have created whereClause.php page. First..._error());   $data = mysql_query("SELECT * 
sql query - SQL
sql query  hi sir,i have a month and year numbers,when i am enter a month and year in sql query then i want results for 1st day of month to last day of month in that year for that month plz provide a solution
sql query - JDBC
sql query  I need a SQL query to add data into database
optimize sql query
optimize sql query  How to optimize sql query in mysql? Thanks
SQL query - SQL
SQL query  hi sir/Madam i am using MS Access where i have table like Fees_Struc: Amount (INT) Due_Date (Date) Fees_Pay: Paid(INT) Student_Bal: Panalty(INT) my problem is when the Due_date is equal
select query
select query  how to write select query with where clause having... to check againest two variable in where cluase. String sql = "select * from...; EXPERIENCE1.EXPERIENCESEQ='"+EXPERIENCESEQ+'" "; i am getting the error in the above
My Sql Error - Development process
My Sql Error  Hello Sir ,I have Created Table with following Query,then Table Created Succefully,But some errors Occured, can u give me the Code... project. Query CREATE TABLE `timetable` ( `busno` int(255) default NULL, `source
SQL Error - SQL
SQL Error  Invalid character value for cast specification on column number 5 (Designation) Whats this error about this if the field i specified in programming error. ie DB fields in above question
display sql query in hibernate
display sql query in hibernate  If you want to see the Hibernate generated SQL statements on console, what should we do
SQL QUERY - JDBC
SQL QUERY  I m running a query using apache tomcat the sql query is on adding an employee in the database whenever i click on add after inserting the values i am getting a java.lang.nullpointer exception
query
) checking, and eliminating situations that are error prone. Java is Platform
jdbc query
but it show sql exception error data type mismatch in criteria expression. But I have used your complete project with My SQL database it showed the transaction
jdbc query
but it show sql exception error data type mismatch in criteria expression. But I have used your complete project with My SQL database it showed the transaction
jdbc query
but it show sql exception error data type mismatch in criteria expression. But I have used your complete project with My SQL database it showed the transaction
jdbc query
but it show sql exception error data type mismatch in criteria expression. But I have used your complete project with My SQL database it showed the transaction
Hibernate SQL Query/Native Query
This tutorial describes Hibernate SQL Query, which is also known as Native Query
PHP SQL Query Insert
PHP SQL Query Insert       This example illustrates how to execute insert query in php application. To understand how to use sql insert queries in php, we have created
Sql query from oracle
Sql query from oracle  Please help me that I want to get the table names form the existing database who does it having eid coloumn plz provide me query in oracle database
PHP SQL Query
PHP SQL Query       This example illustrates how to create and execute the sql query in php...; = 'Invalid query: ' . mysql_error() . 
Php Sql Query Insert
Php Sql Query Insert  This example illustrates how to execute insert query with values in php application. In this example we create two mysql query...; die('Could not connect: ' . mysql_error());  
Named ? SQL query in hibernate
Named ? SQL query in hibernate  What is Named SQL query in hibernate... putting the sql queries to various places in between code. sample.hbm.xml <...;/property> </class> <query name="getProductByCode">
insertion in SQL - SQL
on Insert Query visit to : http://www.roseindia.net/sql/insert.shtml Thanks...insertion in SQL  Hi! Everybody... i have a problem with sql.... it is showing error. invalid syntax near.. i know that we are not supposed to place
sql query search function
sql query search function  i have a textbox on a form , i like a search a data in the form, when i give whatever name and id or etc..its will search and show the same form , so help me using jsp
Doubt In Sql query
Doubt In Sql query  Hi Have a glance @ http://img98.imageshack.us/img98/4348/tableo.png For a single country there may be n numbers of country... tries with this query but it is returning redundancy records. select * from
SQL date query
SQL date query  how to get ( 15 march 2011) and (15/03/2011) output using SQL   Use the following queries to get the data from database in the given format. For (15 march 2011) format: SELECT DATE_FORMAT(dob, '%d %M
Sql query Duplicate
Sql query Duplicate  I have a Employee table with duplicate ID values... 3 D Delhi Then we have used the following query to find the duplicate data...'); You can use following query to find the duplicate id: select id, count(id
syntax error in SQL Insert Statement - Java Beginners
syntax error in SQL Insert Statement   private class ButtonListener implements ActionListener{ public void actionPerformed(ActionEvent ae... change your field name 'date' to 'day' and run the following query: int i
Sql Join Query
Sql Join Query  aTable Name : TblState Stid StateName CountryId --------------------------------------------- 01 TN 01 02 KR 01 03 KL 01 04 WB 01 05 New
search query - SQL
. i have to search? how to do query for this? any one can help me
SQL PHP
=mysql_query($sql,$connection) or exit("Sql Error".mysql_error... SQL PHP       SQL PHP is used to execute the statement using the mysql_query ( ) function
Hibernate Native SQL Query Introduction
In this section, you will learn Hibernate Native SQL query

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.