MSSQLサーバー-計算列の10進数値の一部を取得します
-
10-07-2019 - |
質問
これは私の簡略化した表です(SQL Server 2005):
table1: col1 int, col2 int, col3 cast(col1/col2 as int) [computed column]
何らかの理由で上記は機能しません。 col1 / col2の一部だけを保存したいのですが、どうすればよいですか?
example: col1 = 5, col2 = 3 ... col3 should be 1
解決
所属していません StackOverflow