Unlike SQL injection, which exploits the separation of code and data in structured queries, prompt injection in LLMs is harder to defend against because instructions and user content blend into a single, probabilistically interpreted text stream, offering an infinite attack surface.