Custom Permalinks are in the postmeta table.
SELECT * FROM wp_postmeta WHERE meta_key = ‘custom_permalink’
Change out the wp_postmeta for the name of your particular postmeta table.
You can update via UPDATE sql as well. Just like updating any other DB record, you can google around to find the syntax for that.