SQL Copy SELECT TOP (100) ProductID, UnitPrice, OrderQty, CAST((UnitPrice) AS INT) % OrderQty AS Modulo FROM Sales.SalesOrderDetail; GO Examples: Azure Synapse Analytics and Analytics Platform System (PDW) C: Basic example The following example shows results for the % operator when divid...
Computes the remainder after dividing its first SqlInt16 operand by its second. C# Copy public static System.Data.SqlTypes.SqlInt16 operator % (System.Data.SqlTypes.SqlInt16 x, System.Data.SqlTypes.SqlInt16 y); Parameters x SqlInt16 A SqlInt16 structure. y SqlInt16 A SqlInt16 ...
Computes the remainder after dividing its first SqlInt16 operand by its second. C# 複製 public static System.Data.SqlTypes.SqlInt16 operator % (System.Data.SqlTypes.SqlInt16 x, System.Data.SqlTypes.SqlInt16 y); Parameters x SqlInt16 A SqlInt16 structure. y SqlInt16 ...