Official Answer. Both tramadol and codeine are prescription opioid painkillers, and they seem to be equally effective in terms of pain relief