Skip to content
Advertisement

PostgreSQL, Npgsql returning 42601: syntax error at or near “$1”

While passing PostgreSQL command following error

42601: syntax error at or near “$1”

Advertisement

Answer

After some testing I found that only table values can be passed as parameter not table name and column name. So I changed code like this

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement