我正在使用SQL Server 2008 R2.我希望从表中检索数据不是英语的行.
但是当我输入命令时,它什么也没归我.
SELECT *
FROM PARTY
WHERE NAME LIKE '???? ??? ?????'
ORDER BY SRNO
Run Code Online (Sandbox Code Playgroud)
有什么建议,如何检索那样的记录?
我想清除所有控件特别是textbox nad组合框.我正在使用以下控件来清除所有字段.
private void ResetFields()
{
foreach (Control ctrl in this.Controls)
{
if (ctrl is TextBox)
{
TextBox tb = (TextBox)ctrl;
if (tb != null)
{
tb.Text = string.Empty;
}
}
else if (ctrl is ComboBox)
{
ComboBox dd = (ComboBox)ctrl;
if (dd != null)
{
dd.Text = string.Empty;
dd.SelectedIndex = -1;
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
上面的代码在组框中无法正常工作.在组框中我也有组合框和文本框.组合框显示组框的选定索引= 1.我也想清除这些控件.有什么建议 ????