Dynamic | data | Database Suppose we add more shippers to the table, as shown in Listing 4 (the ShipperID column has the identity attribute and SQL Server automatically generates a value for that column).
"Listing 4: Insert some records into the Shippers table"
Now call the stored procedure and specify ShipperID as the row sequence:
EXEC getsortedshippers ' ShipperID '
Table one shows the output of the stored procedure. ShipperID is equal to 10 of the record location error because the sorted output of this stored procedure is a character sort, not an integer sort. When sorted by character, 10 is arranged in front of 2, because 10 starts with 1 characters.
Table One: Record query results for sorting errors
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.