注册 登录
编程论坛 ASP.NET技术论坛

关于字节

broon0635 发布于 2007-05-17 15:55, 408 次点击
sqladp = New SqlDataAdapter("select Code,Longitude,Latitude,DateTime,CommonName,Value,DefaultUnit from table,cnn)
在上面语句中Longitude,Latitude的字段太长了,我想启动后在gridview中显示其中6个数字。用vb2005怎么写代码啊??
2 回复
#2
Kendy1234562007-05-17 16:12
"select Code,Longitude = substring(Longitude,1,6),Latitude = substring(Latitude ,1,6),DateTime,CommonName,Value,DefaultUnit from table"

1 就是6个字符的起始位置 你可以改
#3
broon06352007-05-18 09:00
谢谢了。我试试
1