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
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
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
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
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
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
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
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
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
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
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
Data Provider
Data Provider       Flex provides some objects that store data that can be used by other components. For example, arrays and collections contain data so they are known as data providers
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
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
Getting A File's Mime Type In Java
Getting A File's Mime Type In Java  Getting A File's Mime Type In Java
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

Ads