Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQLConnection con = new SQLConnection(connection_string);
- string query = @"select ten from sinhvien where stt = '5'";
- SQLCommand cmd = new SQLCommand(query,con);
- string ten = cmd.ExecuteScalar().ToString();
- //thế là lấy được tên của người có stt=5 và lưu vào biến ten
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement