-1

I've got a database with a list of names, but these names contain spaces and are capitalised. How do I copy the name in each row and put it it back in each row but in a different column (lets say "name_url") after they have been lowercased and replaced the spaces with underscores?

Daniil
  • 43
  • 1
  • 1
  • 8

1 Answers1

3

here,

UPDATE TableName
SET destinationCOlumn = LOWER(REPLACE(sourceColumn, ' ', '_'))
John Woo
  • 258,903
  • 69
  • 498
  • 492