Quantcast
Channel: GSAK Forum
Viewing all articles
Browse latest Browse all 75263

How to do an update across two bases ? by elgringosor - 2013-11-18

$
0
0
I try like this but it doesn't work :

$_sql = "ATTACH \BaseTest\sqlite.db3 AS Base"
$status=Sqlite("sql",$_sql)

$_sql = "update C set User2=Base.User2,User3=Base.User3,User4=Base.User4"
$_Sql=$_Sql+" from Caches as C"
$_Sql=$_Sql+" inner join Base.Caches as B on B.Code=C.Code"
$status=Sqlite("sql",$_sql)

I get Error=> SQLite Error 1 - near "from": syntax error

Then i did some research and it seems than sqlite don't handle update with join.

So what is the best way to do an update like my sample ?

Thanks for your help

Viewing all articles
Browse latest Browse all 75263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>