answer action

Can’t find an answer?

Make use of a qualified tutor to get the answer

Mikhail Kotykhov
0
Q:

Scala : mysql executeScalar only if successful

Features

Scala
MySqlCommand cmd = new MySqlCommand(connection);
cmd.CommandText = sqlstring;
Object userNameObj = cmd.ExecuteScalar();

if (userNameObj != null)
  string returnedName = userNameObj.ToString();
 ...
0
Your Answer

Tags

New to Communities?

Join the community