On 2/9/2011 5:49 PM, Jim Wilcoxson wrote: > I assumed you could generate k in a procedural language outside of SQL, but > if you want to do this purely in SQL, I think you can just say: > > create table t(k int primary key) > insert into t values (min(?,?)<<32 | max(?,?)) > > and bind i,j,i,j to the parameters.
Or make it insert into t values (min(:first,:second)<<32 | max(:first,:second)) and bind two parameters like you always did. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users