Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.131
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 5.0.131
  HXTT DBF 7.1.132
  HXTT Excel 6.1.135
  HXTT Json 1.0.103
  HXTT Paradox 7.1.131
  HXTT PDF 2.0.131
  HXTT Text(CSV) 7.1.131
  HXTT Word 1.1.131
  HXTT XML 4.0.132
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
UPDATE EXECUTE
Rudi Mazzaro
2019-09-11 07:19:07.0
After creating data inside a table we run this query

UPDATE BollaRighe set BollaRighe.IMPORTO= '0' WHERE BollaRighe.IMPORTO=''

using EXECUTE function....but not works.
Code is this

move "UPDATE BollaRighe set BollaRighe.IMPORTO= '0' WHERE BollaRighe.IMPORTO=''" to my-query
EXEC SQL EXECUTE IMMEDIATE :my-query END-EXEC

bye
Re:UPDATE EXECUTE
HXTT Support
2019-09-11 07:32:22.0
If IMPORTO is a varchar type

UPDATE BollaRighe set IMPORTO= '0' WHERE IMPORTO=''
or
UPDATE BollaRighe set IMPORTO= '0' WHERE IMPORTO=null
or
UPDATE BollaRighe set IMPORTO= '0' WHERE BollaRighe.IMPORTO=''
or
UPDATE BollaRighe set IMPORTO= '0' WHERE BollaRighe.IMPORTO=null
Re:Re:UPDATE EXECUTE
RUdi Mazzaro
2019-09-11 07:47:17.0
OK ths works

UPDATE BollaRighe set IMPORTO= '0' WHERE IMPORTO=''

But why i cannot use this
UPDATE BollaRighe set BollaRighe.IMPORTO= '0' WHERE BollaRighe.IMPORTO=''

where I write tablename.field ?
Thks
Re:Re:Re:UPDATE EXECUTE
HXTT Support
2019-09-11 16:56:01.0
Because tablename.field is not standard SQL syntax.
Re:Re:Re:Re:UPDATE EXECUTE
Rudi Mazzaro
2019-09-11 23:18:25.0
But in MSSQL is possible and also in other SQLS.
I table1 has a field CODE and table2 has a field CODE in MSSQL is possible write

select table1.code, tabled2.code from table1 left outer join table1.....
update table1 set table1.code = 100

without errors.

Re:Re:Re:Re:Re:UPDATE EXECUTE
HXTT Support
2019-09-12 08:34:43.0
2019-09-12 supports multiple-table UPDATE statement.
Re:Re:Re:Re:Re:Re:UPDATE EXECUTE
RUdi Mazzaro
2019-09-12 08:37:25.0
Ok I'll download last update. Thks

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap