原文:SQL去掉小数点有效数字后的所有0 第一种方法 select cast(2.5000000000000 as real) select cast(2 as real) select cast(2.00000 as real) 第二种方法 CREATE function [dbo].[ClearZero](@inValue varchar(50)) returns varchar(50) as begin declare @returnValue varchar(2
代码: using System; using System.Windows.Forms; namespace CheckInput { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Sure_button_Click(object sender, EventArgs e) { if (CheckIsLegal() && CheckIsNull()) {
public class Demo { /** * 去掉重复值 */ public static void main(String[] args) { String test = "100,120,166,1555,120,150,100"; String[] test1 = test.split(","); ArrayList list = new ArrayList(); for (int i = 0; i < test1.length; i++) { i