1

I am new to MYSQL and I was trying to do an inner join but one of the columns is named TS%. It seems that the symbol at the end is causing this problem because when I remove this column it works just fine

SELECT Players.Player, Players.college, Seasons_Stats.Year, Seasons_Stats.Pos, Seasons_Stats.TS% FROM Players INNER JOIN Seasons_Stats on Players.Player = Seasons_Stats.Player;

1 Answers1

0

Use backquote should resolve that strange column name :

SELECT Players.Player, Players.college, Seasons_Stats.Year, Seasons_Stats.Pos, 
Seasons_Stats.`TS%` FROM Players INNER JOIN Seasons_Stats on Players.Player = Seasons_Stats.Player;

Because the % symbol in a MySQL syntax is used for some query operation.

FanoFN
  • 6,815
  • 2
  • 13
  • 33