1.命令行程序,没有界面。
2.将一个长字符串作为CLOB插入DB,最好是能够和其它字段一起插入,而不用先插入其他记录然后去修改。
3.DB:Oracle问题解决马上结贴。

解决方案 »

  1.   

    用ALTER TABLE table add (字段 CLOB)的方法动态增加字段
    或者建表时
    CREATE TABLE table (id, CLOB);
      

  2.   

    晕,看来是没说清楚。
    我现在有一张表,里面有个clob字段。
    需要用vb写一段程序,把一个已知的字符串作为这个clob字段进行保存。
    因为没怎么写过vb的程序,现在查资料都是vb.net的东西,所以请大家指教一下
      

  3.   

    AddNew 方法范例
    该范例使用 AddNew 方法创建具有指定名称的新记录。Public Sub AddNewX()   Dim cnn1 As ADODB.Connection
       Dim rstEmployees As ADODB.Recordset
       Dim strCnn As String
       Dim strID As String
       Dim strFirstName As String
       Dim strLastName As String
       Dim booRecordAdded As Boolean   ' 打开连接。
       Set cnn1 = New ADODB.Connection
       strCnn = "Provider=sqloledb;" & _
          "Data Source=srv;Initial Catalog=pubs;User Id=sa;Password=;"
       cnn1.Open strCnn
          
       ' 打开雇员表。
       Set rstEmployees = New ADODB.Recordset
       rstEmployees.CursorType = adOpenKeyset
       rstEmployees.LockType = adLockOptimistic
       rstEmployees.Open "employee", cnn1, , , adCmdTable   ' 从用户获取数据,雇员 ID 的格式必须为: 
       ' 名、中间名和姓的三个首字母, 
       ' 五位数字,以及性别标识 M 或 F。
       ' 例如,Bill Sornsin 的雇员 ID 为:B-S55555M。
       strID = Trim(InputBox("Enter employee ID:"))
       strFirstName = Trim(InputBox("Enter first name:"))
       strLastName = Trim(InputBox("Enter last name:"))   ' P只在用户输入姓和名之后进行。
       If (strID <> "") And (strFirstName <> "") _
          And (strLastName <> "") Then      rstEmployees.AddNew
          rstEmployees!emp_id = strID
          rstEmployees!fname = strFirstName
          rstEmployees!lname = strLastName
          rstEmployees.Update
          booRecordAdded = True      ' 显示新添加的数据。
          MsgBox "New record: " & rstEmployees!emp_id & " " & _
             rstEmployees!fname & " " & rstEmployees!lname   Else
          MsgBox "Please enter an employee ID, " & _
             "first name, and last name."
       End If
          
       ' 删除新记录,因为这只是演示。
       cnn1.Execute "DELETE FROM employee WHERE emp_id = '" & strID & "'"
          
       rstEmployees.Close
       cnn1.CloseEnd Sub
      

  4.   

    看这个链接VB中如何存取ORACLE数据库的CLOB类型的字段
      

  5.   

    这里的介绍不错oracle clob字段插入问题
      

  6.   

    直接 cnn.execute("update 表1 set clob = 你的字符串 where 条件 ")
      

  7.   

    前面加上dim和连接就齐了,他就要这个
      

  8.   


    他的字段类型是clob,不是字段名clob