> res = PQexec(conn,"insert into stud values('myname')");>
Don't you still need to include the SQL EOL character, that is asemicolon at the end of your querystring?