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

Ads
 

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

Ads









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 in java
data type is used to store any character. Reference Data type : It is also... is +2,147,483647, it is used to as default data type. Default value is 0. long... is +9,223,372,036,854,775,807.Default values is 0, this data type is used when more than int range
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
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
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
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
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
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
iPad App to store data
iPad App to store data  Hi, How to add data support iPad application? Thanks
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
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
Getting A File's Mime Type In Java
Getting A File's Mime Type In Java  Getting A File's Mime Type In Java
SQL Alter Column type
; Alter Column type in SQL is used to change or recreate the data type... specifying its field attribute and data type. The insert into statement add... The Describe Stu_Table show you the field, data type, null etc
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
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
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 "&
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
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
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
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
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

Ads