-2

is there a select query where I can find a column that has a data named 'Hello'. I'm not looking for a data on a single table, but am looking for a data on a whole database.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
edsamiracle
  • 753
  • 3
  • 12
  • 27
  • *Dynamic SQL* might help you with this. Also query information schema to get all column names. – John Woo Feb 20 '13 at 07:26
  • 1
    See here: http://stackoverflow.com/q/12051216/330315 and here http://stackoverflow.com/q/13514509/330315 and here: http://stackoverflow.com/q/1289792/330315 and here: http://stackoverflow.com/search?q=search+all+columns+in+a+database –  Feb 20 '13 at 07:36