Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Excel
Question about Valid Syntax in Update SQL
AK
2008-09-23 03:32:48.0
I defined a table in excel in a sheet named 'User' as follows:

EmpID Password Status
A1 A1 Active
A2 A2 ShortLeave
A3 A3 LongLeave
A4 A4 Inactive
B1 B1 Dormant

I executed an update sql which returned a syntax error.
Question: What is the right syntax to use?
SQL: "Update User set {v'Status'} = 'Sleeping Soundly' where {v'EmpID'} = 'B1' " ;
Error:
java.sql.SQLException: Syntax error: Stopped parse at .
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.a.b.a(Unknown Source)
at com.hxtt.a.b.a(Unknown Source)
at com.hxtt.a.b.g(Unknown Source)
at com.hxtt.sql.bm.o(Unknown Source)
at com.hxtt.sql.ag.if(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.executeUpdate(Unknown Source)
at pocs.msexcel.Test.main(Test.java:87)
Re:Question about Valid Syntax in Update SQL
HXTT Support
2008-09-23 04:11:33.0
You can try
Update User set "Status" = 'Sleeping Soundly' where "EmpID" = 'B1' ;

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap