Depends.
Some nasogastric tubes can stay in place for up to 6 weeks before being changed, as long as they are carefully looked after and the user does not experience any complications.
Tubes that are made of materials unaffected by gastric acid can remain in the stomach for a longer period of time compared to PVC tubes, which can only be used for up to 2 weeks.