Let's change the long description of the work order '1000' with few lines of text.
If we run the following SQL we can retrieve the internal ID of the work order.
select wonum, workorderid, description from workorder where wonum='1000';
Here we are interested to the WORKORDERID field which is the internal numeric identifier of the work order. This value is referenced in the LDKEY of the LONGDESCRIPTION table.
This is how we can retrieve the long description.
select * from LONGDESCRIPTION where ldkey=37 and ldownertable='WORKORDER';