Do you know if there's a quick way in sql server (via transact-sql) that I could trim all the database string fields.
相关问题
- sql execution latency when assign to a variable
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
- SQL to Parse a Key-Value String
相关文章
- Entity Framework 4.3.1 failing to create (/open) a
- How to truncate seconds in TSQL?
- Code for inserting data into SQL Server database u
- Delete Every Alternate Row in SQL
- Linux based PHP install connecting to MsSQL Server
- SQL Azure Reset autoincrement
- How do we alias a Sql Server instance name used in
- Is recursion good in SQL Server?
Just make sure you are doing a trim on VARCHAR string fields, not CHAR fields :)
That wouldn't do much good.
Your question is a bit vague but is this what you are after?
That will remove both leading and trailing spaces from all values in the 'mycolumn' column in the 'mytable' table.
If anyone knows how to do this without a cursor, please post it: