- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试对数据库进行批量插入,以尝试让我的生活更轻松一些 - 但是,我在尝试插入时一直遇到问题。我认为我的问题是它包含一个 * (但我不确定)。有什么建议么?抱歉新手问题。
错误:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Wall, liking, commenting on or sharing one of your Page posts, answering a Que' at line 3
INSERT INTO `bushell_stats`.`stats` (`id`, `name`, `description`) VALUES
(NULL, 'page_stories', 'The number of stories created about your Page'),
(NULL, 'page_storytellers*', 'The number of people sharing stories about your page. These stories include liking your Page, posting to your Page's Wall, liking, commenting on or sharing one of your Page posts, answering a Question you posted, RSVPing to one of your events, mentioning your Page, phototagging your Page or checking in at your Place Note that currently only the weekly value is in real-time if you set until=now in the request'),
(NULL, 'page_stories_by_story_type', 'The number of stories about your Page by story type'),
(NULL, 'page_storytellers_by_story_type', 'The number of people talking about your Page, by story type'),
(NULL, 'page_storytellers_by_age_gender', 'The number of People Talking About the Page by user age and gender'),
(NULL, 'page_storytellers_by_country', 'The number of People Talking About the Page by user country'),
(NULL, 'page_storytellers_by_locale', 'The number of People Talking About the Page by user language'),
(NULL, 'page_impressions', 'The total number of impressions seen of any content associated with your Page'),
(NULL, 'page_impressions_unique', 'The number of people who have seen any content associated with your Page'),
(NULL, 'page_impressions_paid', 'The number of impressions of a Sponsored Story or Ad pointing to your Page'),
(NULL, 'page_impressions_paid_unique', 'Number of people who saw a sponsored story or Ad about your Page'),
(NULL, 'page_impressions_organic', 'The number of times your posts were seen in News Feed or Ticker or on visits to your Page. These impressions can be Fans or non-Fans'),
(NULL, 'page_impressions_organic_unique', 'The number of people who visited your Page, or saw your Page or one of its posts in News Feed or Ticker. These impressions can be Fans or non-Fans'),
(NULL, 'page_impressions_viral', 'The number of impressions of a story published by a friend about your Page. These stories include liking your Page, posting to your Page's Wall, liking, commenting on or sharing one of your Page posts, answering a Question you posted, RSVPing to one of your events, mentioning your Page, phototagging your Page or checking in at your Place'),
(NULL, 'page_impressions_viral_unique', 'The number of people who saw your Page or one of its posts from a story published by a friend. These stories include liking your Page, posting to your Page's Wall, liking, commenting on or sharing one of your Page posts, answering a Question you posted, RSVPing to one of your events, mentioning your Page, phototagging your Page or checking in at your Place'),
(NULL, 'page_impressions_by_story_type', 'Total impressions of stories published by a friend about your Page by story type'),
(NULL, 'page_impressions_by_story_type_unique', 'The number of people who saw a story about your Page by story type'),
(NULL, 'page_impressions_by_city_unique', 'The number of people who have seen any content associated with your Page by city'),
(NULL, 'page_impressions_by_age_gender_unique', 'The number of people who have seen any content associated with your Page by age and gender grouping'),
(NULL, 'page_impressions_frequency_distribution', 'The number of people your Page reached broken down by how many times people saw any content about your Page'),
(NULL, 'page_impressions_viral_frequency_distribution', 'The number of people your Page reached from a story published by a friend, broken down by how many times people saw stories about your Page'),
(NULL, 'page_engaged_users', 'The number of people who engaged with your Page. Engagement includes any click'),
(NULL, 'page_consumptions', 'The number of times people clicked on any of your content without generating a story'),
(NULL, 'page_consumptions_unique', 'The number of people who clicked on any of your content without generating a story'),
(NULL, 'page_consumptions_by_consumption_type', 'The number of times people clicked on any of your content without generating a story, by type'),
(NULL, 'page_consumptions_by_consumption_type_unique', 'The number of people who clicked on any of your content without generating a story, by type'),
(NULL, 'page_places_checkin_total', 'The number of times people checked into a place'),
(NULL, 'page_places_checkin_total_unique', 'The number of people who checked into a place'),
(NULL, 'page_places_checkin_mobile', 'The number of times people checked into a place using mobile phones'),
(NULL, 'page_places_checkin_mobile_unique', 'The number of people who checked into a place using mobile phones'),
(NULL, 'page_places_checkins_by_age_gender', 'gender and age of people who checked in at your Place'),
(NULL, 'page_places_checkins_by_locale', 'top locales of people who checked into your Place'),
(NULL, 'page_places_checkins_by_country', 'top countries of people who checked into your Place'),
(NULL, 'page_negative_feedback', 'The number of times people took a negative action (e.g., un-liked or hid a post)'),
(NULL, 'page_negative_feedback_unique', 'The number of people who took a negative action (e.g., un-liked or hid a post)'),
(NULL, 'page_negative_feedback_by_type', 'The number of times people took a negative action broken down by type (see negative feedback types)'),
(NULL, 'page_negative_feedback_by_type_unique', 'The number of people who took a negative action broken down by type see negative feedback types)'),
(NULL, 'page_fans', 'The total number of people who have liked your Page.'),
(NULL, 'page_fans_locale', 'Aggregated language data about the people who like your Page based on the default language setting selected when accessing Facebook.'),
(NULL, 'page_fans_city', 'Aggregated Facebook location data, sorted by city, about the people who like your Page.'),
(NULL, 'page_fans_country', 'Aggregated Facebook location data, sorted by country, about the people who like your Page'),
(NULL, 'page_fans_gender_age', 'Aggregated demographic data about the people who like your Page based on the age and gender information they provide in their user profiles.'),
(NULL, 'page_fan_adds', 'The number of new people who have liked your Page.'),
(NULL, 'page_fan_adds_unique', 'The number of new people who have liked your Page.'),
(NULL, 'page_fans_by_like_source', 'This is a breakdown of the number of Page likes from the most common places where people can like your Page (see like sources).'),
(NULL, 'page_fans_by_like_source_unique', 'The number of people who liked your Page, broken down by the most common places where people can like your Page (see like sources).'),
(NULL, 'page_fan_removes', 'Unlikes of your Page'),
(NULL, 'page_fan_removes_unique', 'Unlikes of your Page'),
(NULL, 'page_friends_of_fans', 'The number of people who are friends of the Fans of your Page (estimated)'),
(NULL, 'page_tab_views_login_top_unique', 'The number of users logged into Facebook who saw tabs on your Page'),
(NULL, 'page_tab_views_login_top', 'The number of times users logged into Facebook saw tabs on your Page'),
(NULL, 'page_views', 'Page views'),
(NULL, 'page_views_unique', 'Page Views from users logged into Facebook'),
(NULL, 'page_views_login', 'Page Views from users logged into Facebook'),
(NULL, 'page_views_login_unique', 'Page Views from users logged into Facebook'),
(NULL, 'page_views_logout', 'Page views from users not logged into Facebook'),
(NULL, 'page_views_external_referrals', 'Top referrering external domains sending traffic to your Page.'),
(NULL, 'page_posts_impressions', 'The number of impressions that came from all of your posts'),
(NULL, 'page_posts_impressions_unique', 'The number of people who saw any of your Page posts'),
(NULL, 'page_posts_impressions_paid', 'The number of impressions of your Page posts in an Ad or Sponsored Story'),
(NULL, 'page_posts_impressions_paid_unique', 'The number of people who saw your Page posts in an Ad or Sponsored Story'),
(NULL, 'page_posts_impressions_organic', 'The number of impressions of your posts in News Feed or Ticker or on your Page'),
(NULL, 'page_posts_impressions_organic_unique', 'The number of people who saw your Page posts in News Feed or Ticker, or on your Page's Wall'),
(NULL, 'page_posts_impressions_viral', 'The number of times users saw your posts via stories published by their friends'),
(NULL, 'page_posts_impressions_viral_unique', 'The number of people who saw your Page posts via a story from a friend'),
(NULL, 'page_posts_impressions_frequency_distribution', 'The number of people who saw your Page posts, broken down by how many times people saw your posts'),
(NULL, 'post_stories*', 'The number of stories generated about your Page post'),
(NULL, 'post_storytellers*', 'The number of unique people who created a story about your Page post'),
(NULL, 'post_stories_by_action_type*', 'The number of stories created about your Page post, by action type'),
(NULL, 'post_storytellers_by_action_type*', 'The number of unique people who created a story about your Page post, by action type'),
(NULL, 'post_impressions*', 'The number of times your Page post was seen'),
(NULL, 'post_impressions_unique*', 'The number of people who saw your Page post'),
(NULL, 'post_impressions_paid*', 'The number of impressions of your Page post in an Ad or Sponsored Story'),
(NULL, 'post_impressions_paid_unique*', 'The number of people who saw your Page post in an Ad or Sponsored Story'),
(NULL, 'post_impressions_organic*', 'The number of impressions of your post in Newsfeed, Ticker, or on your Page's Wall'),
(NULL, 'post_impressions_organic_unique*', 'The number of people who saw your post in their Newsfeed or Ticker or on your Page's Wall'),
(NULL, 'post_impressions_viral*', 'The number of impressions of your Page post in a story generated by a friend'),
(NULL, 'post_impressions_viral_unique*', 'The number of people who saw your page post in a story from a friend'),
(NULL, 'post_impressions_by_story_type*', 'The number of times this post was seen via a story published by a friend of the person viewing the post'),
(NULL, 'post_impressions_by_story_type_unique*', 'The number of people who saw your page post in a story from a friend, by story type'),
(NULL, 'post_consumptions*', 'The number of times people clicked on anywhere in your posts without generating a story'),
(NULL, 'post_consumptions_unique*', 'The number of people who clicked anywhere in your post without generating a story'),
(NULL, 'post_consumptions_by_type*', 'The number of times people clicked on anywhere in your posts without generating a story, by consumption type'),
(NULL, 'post_consumptions_by_type_unique*', 'The number of people who clicked anywhere in your post without generating a story, by consumption type'),
(NULL, 'post_engaged_users*', 'The number of people who clicked anywhere in your posts'),
(NULL, 'post_negative_feedback*', 'The number of times people took a negative action in your post (e.g. hid it)'),
(NULL, 'post_negative_feedback_unique*', 'The number of people who took a negative action in your post (e.g., hid it)'),
(NULL, 'post_negative_feedback_by_type*', 'The number of times people took a negative action in your post broken down by type'),
(NULL, 'post_negative_feedback_by_type_unique*', 'The number of people who took a negative action in your post broken down by type')
最佳答案
问题是您的文本包含未转义的引号:
'...ing your Page, posting to your Page's Wall, ...'
-- ^ here
您可以使用另一个引号来转义它们:
'...ing your Page, posting to your Page''s Wall, ...'
或反斜杠:
'...ing your Page, posting to your Page\'s Wall, ...'
关于mysql - SQL 插入(基本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11385704/
SQL、PL-SQL 和 T-SQL 之间有什么区别? 谁能解释一下这三者之间的区别,并提供每一个的相关使用场景? 最佳答案 SQL 是一种对集合进行操作的查询语言。 它或多或少是标准化的,几乎所有关
这个问题已经有答案了: What is the difference between SQL, PL-SQL and T-SQL? (6 个回答) 已关闭 9 年前。 我对 SQL 的了解足以完成我的
我在数据库中有一个 USER 表。该表有一个 RegistrationDate 列,该列有一个默认约束为 GETDATE()。 使用 LINQ 时,我没有为 RegistrationDate 列提供任
我有一个可能属于以下类型的字符串 string expected result 15-th-rp 15 15/12-rp 12 15-12-th
很难说出这里问的是什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或言辞激烈,无法以目前的形式合理回答。如需帮助澄清此问题以便可以重新打开,visit the help center . 9年前关闭
我有一个存储过程(称为 sprocGetArticles),它从文章表中返回文章列表。这个存储过程没有任何参数。 用户可以对每篇文章发表评论,我将这些评论存储在由文章 ID 链接的评论表中。 有什么方
我目前正在做一个 *cough*Oracle*cough* 数据库主题。讲师介绍embedded SQL作为让其他语言(例如 C、C++)与(Oracle)数据库交互的方式。 我自己做了一些数据库工作
SQL Server 中 SQL 语句的最大长度是多少?这个长度是否取决于 SQL Server 的版本? 例如,在 DECLARE @SQLStatement NVARCHAR(MAX) = N'S
这个问题已经有答案了: Simple way to transpose columns and rows in SQL? (9 个回答) 已关闭 8 年前。 CallType
预先感谢您对此提供的任何帮助。 假设我有一个查询,可以比较跨年的数据,从某个任意年份开始,永无止境(进入 future ),每年同一时期直到最后一个完整的月份(其特点是一月数据永远不会显示至 2 月
我在数据库中有一个 USER 表。该表有一个 RegistrationDate 列,该列的默认约束为 GETDATE()。 使用 LINQ 时,我没有为 RegistrationDate 列提供任何数
下面是我试图用来检查存储过程是否不存在然后创建过程的 sql。它会抛出一个错误:Incorrect syntax near the keyword 'PROCEDURE' IF NOT EXISTS
我有一个同事声称动态 SQL 在许多情况下比静态 SQL 执行得更快,所以我经常看到 DSQL 到处都是。除了明显的缺点,比如在运行之前无法检测到错误并且更难阅读,这是否准确?当我问他为什么一直使用
来自 lobodava 的动态 SQL 查询是: declare @sql nvarchar(4000) = N';with cteColumnts (ORDINAL_POSITION, CO
使用 SQL Server 中的存储过程执行动态 SQL 命令的现实优点和缺点是什么 EXEC (@SQL) 对比 EXEC SP_EXECUTESQL @SQL ? 最佳答案 sp_executes
我有这个有效的 SQL 查询: select sum(dbos.Points) as Points, dboseasons.Year from dbo.StatLines dbos i
我正在调试一些构建成功运行的 SQL 命令的代码。 然而,在查询结束时,查询结果似乎被写入了一个文本文件。 完整的查询如下 echo SELECT DATE,DATETABLE,DATE,APPDAT
我有一些创建表的 .sql 文件(MS SQL 数据库): 表_1.sql: IF OBJECT_ID (N'my_schema.table1', N'U') IS NOT NULL DROP TAB
我写了下面的 SQL 存储过程,它一直给我错误@pid = SELECT MAX(... 整个过程是: Alter PROCEDURE insert_partyco @pname varchar(20
我在 SQL Server 2005 中有包含两列 Fruit 和 Color 的表,如下所示 Fruit Colour Apple Red Orange
我是一名优秀的程序员,十分优秀!