Yellow exterior glue is used for outdoor projects but not continuous submersion. It will be labeled water resistant or ...
There are several adhesives that can hold pieces of wood together without screws or nails. The cheapest and most commonly available is plain old white glue, similar to the Elmer’s we used in school.