• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

how particular string from whole database.?  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to find particular string from whole database where it is how many times present in database.

e.g i want to find string "xyz" in whole database

can anyone suggest me...?
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

suresh sargar wrote:i want to find particular string from whole database where it is how many times present in database.

e.g i want to find string "xyz" in whole database

can anyone suggest me...?



select count(*)
from table
where mystring = 'xyz'
 
author & internet detective
Marshal
Posts: 38684
677
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or if you want a substring:
where mystring like '%xyz%'
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!