Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
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