Guest User

Untitled

a guest
Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. select 'select distinct ''' || a.name || '.' || b.name
  2. || ''' from ' || b.name
  3. || 'where ' || b.name || ' like ''%<%/>%'' union '
  4. from systable a
  5. join syscolumns b on (a.id = b.id)
  6. join systypes c on (b.type = c.xtype)
  7. where a.type ='U' and c.name = ('CHAR', 'CHARN', 'VARCHAR', 'VARCHARN');
  8.  
  9. select * from information_schema.columns
  10. where DATA_TYPE = 'XML'
Add Comment
Please, Sign In to add comment