我通过SELECT查出了符合条件的列,现在我要把它拼接成一个字符串怎么做
比如字段 A
DDD
AAA
我现在要拼接成一条字符串中间不能有,号
SQL code:
declare @s varchar(100)
select @s=isnull(@s+'','')+col from tb
select @s
SQL code:
-- ......
有两个表
表A
id bigtype
1 2222
2 3333
3 4444
4 5555
表B
id bigtype smalltype
5 2222 8888
6 2222 9999
7 2222 0000
8 ......
SQL查詢語句Select
要求如下:(inputdatetime or Outputdatetime) and Name
代碼如下:
sql = "select *from Info where inputdatetime between #" & StartDate.Value + StartTime.Value & "# and #" & StopDate.Value + StopTime.Value & "# ......
我是才学的myeclipse,想用sql数据库,可是就是连接不上,请高手指点一下,先谢谢啦
以web程序为例吧,我用的mysql你改一下驱动和url就行了。服务器tomcat6
1.在tomcat的目录Tomcat 6.0\conf\context.xml配置如下:
<Context>
<Resource name="jdbc/test"
&nbs ......
sql Update語句錯誤
代碼如下:
Dim rs As ADODB.Recordset
Dim sql2 As String
If Trim(BarCode.Text = "") Then &nbs ......
请问:
1,如何将一张dbf表导入到sql server2000中的一张表。使用DTS该怎样实现?
2,使用网上代码:
Insert Into Tb_cj Select * from openrowset('MSDASQL','Driver=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=c:','select * from F:\MyWeb\094实践成绩.DBF')
报错:
......