for instance:
a table created as below:

```
create table tbl_text( id integer primary key, txt text unique, ref integer );

```

insert a record:

```
insert into tbl_text values(null, "Hello", 123);

```

how to get the id of "Hello" just inserted in fastest way? 
query works but it might be time-consuming, e.g. 

```
select id from tbl_text where txt='Hello'

```