English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

10 answers

.

Select * from employee where name like 'D?souza'

**********
Vasu M
**********

2006-11-30 22:57:43 · answer #1 · answered by V@su Maniram 3 · 0 0

suppose u r using table emp which has an attribute ename and others so many . u want to know the record of an emp whoose name is D'souza , write down it and execute it


select * from emp where ename ="D'souza"

2006-12-01 00:16:11 · answer #2 · answered by Dev 2 · 0 0

Imagine your table name is employee and the field name for storing names of the employee's in the employee table is ename , then the query will be like this.


select * from employee where ename='dsouza';

2006-12-01 01:02:33 · answer #3 · answered by mallikj2♠ 2 · 0 0

Is the problem the single quote? Try 'D\'souza'. I'm not an SQL guy, but it's worth a try.

2006-12-01 00:13:56 · answer #4 · answered by arbeit 4 · 0 0

Assuming you have a table named table, and a name column named columnname, and the name column contains both first and last names:

For MySQL:

SELECT * FROM table WHERE columnname LIKE '%D\'Souza%'

For Transact-SQL (Microsoft):

SELECT * FROM table WHERE columnname LIKE '%D''Souza%'

2006-12-01 00:18:55 · answer #5 · answered by Anonymous · 0 0

Select * from table name
where name like 'D's%'

2006-12-01 00:11:03 · answer #6 · answered by albertyakhnin 1 · 0 0

select * from table_name
where name = 'D''souza';

Use two single quotes after D.

2006-12-01 23:57:01 · answer #7 · answered by topcat 3 · 0 0

SELECT *
FROM complete
WHERE lName="D'souza";

2006-12-01 01:44:42 · answer #8 · answered by techie 2 · 0 0

it's very simple,

Use escape in the query....

2006-12-01 07:12:32 · answer #9 · answered by Anonymous · 0 0

-\displayE "D'souza" end/

2006-12-01 00:07:59 · answer #10 · answered by Anonymous · 0 0

fedest.com, questions and answers