This seems like a simple operation so apologies if I've missed an existing answer.
What I need to do is extract single record (a client) from a database of clients (in Spatialite) and present the query results as a transposed table.
So, to simplify, the client database would have fields; name, address, phone number, etc. for a large number of clients (one row each). I want a query which will return a table as below for a particular client I pick.
field,value
name, {value in 'name' field for selected client}
address, {value in 'address' field for selected client}
phone number, {value in 'phone number' field for selected client}
etc.
Hope that makes sense.
SELECT * FROM <clients> WHERE id = <some_id>;
is what you're looking for?