Thanks. I didn't think of "CTEs" either. I need to read up on them.
Mike
> On Sep 12, 2016, at 08:49, Dominique Devienne wrote:
>
>> On Sun, Sep 11, 2016 at 11:48 PM, mikeegg1 wrote:
>>
>> I think Oracle (a long distant memory) has variables like
sts.sqlite.org>
> Sent: Sunday, September 11, 2016 5:48 PM
> Subject: [sqlite] Does sqlite3 have variables like Oracle?
>
> I think Oracle (a long distant memory) has variables like @variable or
> @@variable where you can do something like '@variable = select rowid from
>
On Sun, Sep 11, 2016 at 11:48 PM, mikeegg1 wrote:
> I think Oracle (a long distant memory) has variables like @variable or
> @@variable.
Not really. Oracle SQL doesn't have variables per se.
But APIs to interact with Oracle SQL (OCI, JDBC, ODBC, etc...) can *bind*
and
.
David
From: mikeegg1 <mikee...@mac.com>
To: SQLite mailing list <sqlite-users@mailinglists.sqlite.org>
Sent: Sunday, September 11, 2016 5:48 PM
Subject: [sqlite] Does sqlite3 have variables like Oracle?
I think Oracle (a long distant memory) has variables like @variable or
You can also access that value within your Perl code, in a DBMS-agnostic
fashion, with the appropriate DBI routine:
http://search.cpan.org/dist/DBI/DBI.pm#last_insert_id
-- Darren Duncan
On 2016-09-11 2:59 PM, mikeegg1 wrote:
I forgot I could use it inside the shell. Thanks.
On Sep 11,
I forgot I could use it inside the shell. Thanks.
Mike
> On Sep 11, 2016, at 16:58, Simon Slavin wrote:
>
>
> On 11 Sep 2016, at 10:53pm, mikeegg1 wrote:
>
>> Thanks. I thought not. I’m doing this from PERL on a Mac and don’t know if I
>> can fully
On 11 Sep 2016, at 10:53pm, mikeegg1 wrote:
> Thanks. I thought not. I’m doing this from PERL on a Mac and don’t know if I
> can fully access last_row_id().
It's not a C function, it's a function you can use inside SQL commands. There
shouldn't be a problem with it.
Thanks. I thought not. I’m doing this from PERL on a Mac and don’t know if I
can fully access last_row_id(). :)
Mike
> On Sep 11, 2016, at 16:52, Simon Slavin wrote:
>
>
> On 11 Sep 2016, at 10:48pm, mikeegg1 wrote:
>
>> I think Oracle (a long
On 11 Sep 2016, at 10:48pm, mikeegg1 wrote:
> I think Oracle (a long distant memory) has variables like @variable or
> @@variable where you can do something like '@variable = select rowid from
> table where field = 4' and then later do 'insert into othertable (field2)
>
I think Oracle (a long distant memory) has variables like @variable or
@@variable where you can do something like '@variable = select rowid from table
where field = 4' and then later do 'insert into othertable (field2)
value(@variable)’. Does this make sense? I’m wanting to in the shell select
10 matches
Mail list logo