ASP.NET中,select查询语句的问题

我想问一下
String a = "select * from id where……";
where后面想加一个label.text(输入进去的值),请问大神怎么加?
就是后台管理根据输入的ID去查询,怎么把输入的id放到where后面?

String a = String.Format("select * from id where id={0},label.text";)

 String a = "select * from id where id="+label.Text;//id为数字类型
String a = "select * from id where id='"+label.Text+"'";//id为字符串类型