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

Instead of say a comma to simply separate words, can you input any other symbols, punctuation, brackets, etc. That help the database search better?

2006-11-19 00:49:33 · 3 answers · asked by policetac 3 in Computers & Internet Other - Computers

3 answers

Using an asterisk * also known as a wildcard is helpful. This will allow you to type part of a word.

Example: If your searching for shoes and you type shoe* it will search anything with those letters.

2006-11-19 00:58:20 · answer #1 · answered by techstatusdotnet 3 · 0 0

use parentheses in the main words. the computer will search words in parentheses first. if not the computer will search the whole phrase.
try using conectors in a search like AND and OR ex: (dogs or ca
ts) (bones or fish)
when doing a search use the databases help menu

2006-11-19 09:28:33 · answer #2 · answered by k_a_y_s_i_2004 2 · 0 0

well you can search better by using wild card characters

select * from table will retrive all the records

if you are looking for pattern matching and want to cover all possibilities

select * from table where field_nm like 'Jo%' --> returns all the records with field_nm starting with Jo


select * from table where field_nm like '%Jo' --> returns all the records with field_nm ending with Jo

select * from table where field_nm like '%Jo%' --> returns all the records with field_nm containing Jo in the middle

when you are using multiple search conditions then to enable readability of the query enclose them the conditions in brackets

select * from table where ( name like 'Mervin%' and age >23) or (name like 'Chris%' and age >24)


if you looking for just a single character match ie your field_nm should return values like mervi,merve,merva

only one character changes then select * from table where field_nm like 'merv_'


finally just to improve the readablity of the output you can use aliases

select field_nm name,age_tab age from table

where age and name will be the headers in the fields returned



hope this helps

2006-11-19 09:43:04 · answer #3 · answered by life goes on... 2 · 0 1

fedest.com, questions and answers