Current location - Loan Platform Complete Network - Big data management - C# Gets the maximum value of a column of values ??(int type) in the database
C# Gets the maximum value of a column of values ??(int type) in the database

. . .

string s="select Max(message_id) from tblmessag"

This sentence defines a string s, and the content of s is the content in double quotes "".

You directly write select Max(message_id) from tblmessag

in the database query