data type used to store name.(getting an error)

data type used to store name.(getting an error)

Statement stm=con.createStatement();

         String query="select * from employee where ename=\'"+ename+"\'";
         ResultSet rs=stm.executeQuery(query);
         if(rs.next())
          {

             -------

this is the code i have and i am getting an error like dis:

"ename cannot be resolved to a variable"

whats the problem in my code and how to rectify it.

plzz help n thanx in adv

View Answers









Related Tutorials/Questions & Answers:
data type used to store name.(getting an error)
data type used to store name.(getting an error)    Statement stm=con.createStatement(); String query="select * from employee where ename... getting an error like dis: "ename cannot be resolved to a variable" whats
data type
data type  which data type is used to store video file in mysql databse
Advertisements
Which splunk component is used for getting data from data source
Which splunk component is used for getting data from data source  Hi... for getting data from a data source. Which splunk component is used for getting data... in Splunk for getting data. It supports following data sources: Files
Getting the method name used in the Application
Getting the method name used in the Application   ... name by using the getMethods() method. Here is an example that demonstrates... of java.util.Integer.class into it. Now retrieve the method name by using the getMethods
Person have name field of Name type..??
Person have name field of Name type..??  Person have name field of Name type means i understood to create new Name class with fields firstname... name? can you please write code two two different class and show me how to use
data type
data type  what are the date types in the java and vb.net? what is the difference between java and vb.net?   Hi Friend, java data types... vb.net data types are: Byte SByte Short UShort Integer UInteger Long ULong
convert string type to mathod name
convert string type to mathod name  Please solve How to convert a string type data to as a method name? For Ex: collTypeCatList = new ArrayList<..."); collTypeCategory1.setCustomers(str);//here i have to execute methods(but it takes like //string type
Data type in java
value is +9,223,372,036,854,775,807.Default values is 0, this data type is used... is a double precision 64-bit IEEE 754 format. this data type is basically used... data type has only two possible values true and false. This data type is used
What is data science used for?
What is data science used for?  Hi, I am beginner in Data Science... is data science used for? Try to provide me good examples or tutorials links so that I can learn the topic "What is data science used for?". Also tell
what type of computer memory is used for temporary storage
what type of computer memory is used for temporary storage  what type of computer memory is used for temporary storage   RAM or Random Access Memory is a computer memory that is used for temporary storage of data. RAM
Store ResultSt Data in a Map
Store ResultSt Data in a Map  i want to store data in a hash Map .Please solve my problem as soon as possible
alter data type
alter data type  alter data type of subName column for subject table to varchar(40
SERIAL data type
SERIAL data type   hello, What is SERIAL data type in MySQL?   hii,ADS_TO_REPLACE_1 SERIAL is an alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE
iPad App to store data
iPad App to store data  Hi, How to add data support iPad application? Thanks
Java Xml Data Store
be followed up and/or purchased. You will need to store the data in a local binary... the implementation needs to change later on (perhaps they might decide to store the data...Java Xml Data Store  I have to do this project and i'm finding it so
error for getting the data from an api using br.readLine - Development process
error for getting the data from an api using br.readLine  hi the application is hanging while reading the data using readLine() function . actually the data is coming from remote using particular api call see the following code
error getting repository data for epel repository not found centos 7
error getting repository data for epel repository not found centos 7  ... because of the error: error getting repository data for epel repository not found My os is centos 7. How to resolve this? Thanks   Hi, This error
error getting repository data for epel repository not found centos 7
error getting repository data for epel repository not found centos 7  ... because of the error: error getting repository data for epel repository not found My os is centos 7. How to resolve this? Thanks   Hi, This error
store and retrieve data
store and retrieve data  sir,i want to store the entering data in a word file and retrieve it when i need.i am try to develop a video portal.in which... Write data into word file For this, poi-scratchpad-3.7-20101029.jar is needed
servlet program for data store in oracle?
servlet program for data store in oracle?  how to store data in oracle through servlet program
Enum data type
Enum data type  How can we use enum data type in java program?  ... data type. Here we have defined Fruits as enum type by using the enum keyword. Now... data type. Here we have defined Fruits as enum type by using the enum keyword. Now
Getting A File's Mime Type In Java
Getting A File's Mime Type In Java  Getting A File's Mime Type In Java
How is Python used for data science?
How is Python used for data science?  Hi, I am beginner in Data...: How is Python used for data science? Try to provide me good examples or tutorials links so that I can learn the topic "How is Python used for data science
In which fields data science is used?
In which fields data science is used?  Hi, I am beginner in Data...: In which fields data science is used? Try to provide me good examples or tutorials links so that I can learn the topic "In which fields data science
parser error xmlparseentityref no name
parser error xmlparseentityref no name  While parsing the error in my mobile application ..i'm getting the following error.. "parser error xmlparseentityref no name" and that is because of "&". I have also tried the "&
Java error illegal start of type
Java error illegal start of type       The Java error illegal start of type... start  type, for this we have a class name Illegalstartoftype.Inside
store form data into word document
store form data into word document  i want form page data, ex username phone number.. to store it in a word document file
Code to store SubCombo box Name - Development process
Code to store SubCombo box Name  Hi, In the following code i want to store Sub-combo box(Second combo in Department field) name instead of value. plz send me code tfor that Add Data var arr = new Array(); arr["Select
Modify Data Type with ALTER Command
Modify Data Type with ALTER Command  Is it possible to modify the Data type of a column which has at least one data in it?If it is possible,then what will happen to the data in the column? Example. Table Name: Emp EmpName
how to store,retrieve,modify the data
how to store,retrieve,modify the data  hello sir ,how to store,retrieve,modify the data using the swing please help me
ModuleNotFoundError: No module named 'nifeng-data-store'
named 'nifeng-data-store' error? Thanks   Hi, In your...: No module named 'nifeng-data-store' error will be solved. Thanks...ModuleNotFoundError: No module named 'nifeng-data-store'  Hi, My
ModuleNotFoundError: No module named 'wrattler-data-store'
: No module named 'wrattler-data-store' error? Thanks   Hi..., ModuleNotFoundError: No module named 'wrattler-data-store' error...ModuleNotFoundError: No module named 'wrattler-data-store'  Hi, My
ModuleNotFoundError: No module named 'wrattler-data-store'
: No module named 'wrattler-data-store' error? Thanks   Hi..., ModuleNotFoundError: No module named 'wrattler-data-store' error...ModuleNotFoundError: No module named 'wrattler-data-store'  Hi, My
Data Conversion from int to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from int primitive type to another data type like String, boolean and char etc
Data Conversion from String to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from String primitive type to another data type like int, boolean and char etc
Data Conversion from short to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from short primitive type to another data type like String, boolean and char etc
Data Conversion from byte to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from byte primitive type to another data type like String, boolean and char etc
Data Conversion from float to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from float primitive type to another data type like String, boolean and char etc
Data Conversion from double to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from double primitive type to another data type like String, boolean and char etc
Data Conversion from long to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from long primitive type to another data type like String, boolean and char etc
incompatble type error
); } } } trows incampatble type error...incompatble type error  class ArithmeticExceptiontest { public static void main(String args[]) { int num1 = 0; int num2=10
ModuleNotFoundError: No module named 'data_type_tools'
'data_type_tools' error? Thanks   Hi, In your python... named 'data_type_tools' error will be solved. Thanks...ModuleNotFoundError: No module named 'data_type_tools'  Hi, My
ModuleNotFoundError: No module named 'algebraic-data-type'
: No module named 'algebraic-data-type' error? Thanks   Hi..., ModuleNotFoundError: No module named 'algebraic-data-type' error...ModuleNotFoundError: No module named 'algebraic-data-type'  Hi, My
ModuleNotFoundError: No module named 'data_type_tools'
'data_type_tools' error? Thanks   Hi, In your python... named 'data_type_tools' error will be solved. Thanks...ModuleNotFoundError: No module named 'data_type_tools'  Hi, My
MySQL Boolean Data Type
MySQL Boolean Data Type This example illustrates how create a boolean data type. In this example we create a table 't' where define four field that is 'a' which is BOOL type, 'b' which is FLOAT type, 'c' which is LONG VARCHAR type
to store data entered in html page
to store data entered in html page  i want to a job site... use two forms for it 1)for user name,password, submit button 2)for text field... submit we have to move to form 2 on there we have enter text data
How I Upload File and Store that file name in Database using JSP
How I Upload File and Store that file name in Database using JSP  Hi All, I m the beginner in JSP and I want to upload the file and store that file and some other form data in MySQL database. Ex. There is one employee detail
Mysql Alter Data Type
Mysql Alter Data Type       Mysql  Alter Date Type is used to modify or change the Column... an example on 'Mysql Alter Date Type'.To understand this example we create a table
SQL Alter Column type
; Alter Column type in SQL is used to change or recreate the data type... of create statement specifying its field attribute and data type. The insert...), Stu_Name varchar(10), Stu_Class varchar(10)) Insert data
Getting Error - Development process
Getting Error   Hi , i am getting error while executing this code. I just want to store date in to database. Dont mistake me for repeated questions... of query values and destination fields are not the same. my table : Add_Data

Ads