这是因为评论"-- MySQL“而不是"--comment”。我最近开始使用PHP,在此之前,我一直使用"--comment“。现在,我想知道为什么PHP的mysql_query()中不允许这样做?php
-- comment--not a comment
age FROM friends WHERE
type 'Comment[]'.Type 'Comment' is not assignable to type 'Comment'.
wwwroot/app/comments/commentList.ts(25,13): errorTS2322: Type 'Comment[]' is not assignable to type 'Comment[]'.Type