how can i am search the data from database?
just like google
Answers were Sorted based on User's Feedback
Answer / sharifuddin
for this first design the table like the fields as
EMPNo | EMPNAME | SALARY | DETAILS
Now write the query as follows...
SELECT * FROM EMPLOYE WHERE DETAILS LIKE '%<SEARCH KEY>%'
This is the simplest query for that...
Sharif
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / mahendra
note that, when datatype is string i.e. details like
mahendra, then use like this - "select * from employee
where empname like '%" & trim(txtbob.text) "&' ", i used
because to any leading space will be deleted.
if u want to find salary figure that i integer then
"select * from employee where salary >= " & trim
(txtbob.text) "&"
pl.note '%" & '&" for string
for this first design the table like the fields as
EMPNo | EMPNAME | SALARY | DETAILS
Now write the query as follows...
SELECT * FROM EMPLOYE WHERE DETAILS LIKE '%<SEARCH KEY>%'
This is the simplest query for that...
Is This Answer Correct ? | 2 Yes | 1 No |
How to send auto matic emails based on scheduled tasks to several of my clients
Features in ASP.NET?
RequiredFieldValidator--write code in javascript
What are the different types of sessions in asp.net?
Why we use asp.net for website development?
What is source control?How to use in asp.net?
What are validator? Name the validation controls in asp.net?
What language does asp.net use?
how can u display multi language (i.e english,spanish...) web site?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
How can we create custom controls in asp net?
What is _viewstart?