I create a table like this:
create table table1 (
field1 text not null,
field2 text not null,
field3 text not null,
...
id binary primary key not null
);
If i add a row to this table, i want to automatically create a MD5 Hash out of the values of field1 and field2. This created MD5 should be used as primary key inside of this row as an ID.
How do i do this?