Created
May 20, 2019 00:24
-
-
Save ArCiGo/fe8e9558e40aa1cf0264803138fcd834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @myDecimalValue FLOAT | |
SET @myDecimalValue = 4521312.531 | |
SELECT CONVERT(INT, @myDecimalValue) | |
/** Output **/ | |
----------- | |
4521312 | |
DECLARE @msg VARCHAR(200) = '' | |
SET @msg = 'The Customer already exists!' | |
DECLARE @pCustomerId INT | |
SELECT @pCustomerId = ISNULL(MAX(cus.Id), 0) + 1 FROM Customer cus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment