在这里,我们将给大家分享关于有没有办法忽略INSERT上不存在的列?的知识,让您更了解有没有办法忽略insert上不存在的列车的本质,同时也会涉及到如何更有效地android–有没有办法忽略libgd
在这里,我们将给大家分享关于有没有办法忽略INSERT上不存在的列?的知识,让您更了解有没有办法忽略insert上不存在的列车的本质,同时也会涉及到如何更有效地android – 有没有办法忽略libgdx图像限制? (图像必须是2的幂)、c – 有没有办法测试默认构造函数不存在?、centos – 有没有办法在预先存在的服务器上运行kickstart脚本?、CSS][Youtube to OBS] 有没有办法忽略在流屏幕聊天中显示的自定义消息/用户?的内容。
本文目录一览:- 有没有办法忽略INSERT上不存在的列?(有没有办法忽略insert上不存在的列车)
- android – 有没有办法忽略libgdx图像限制? (图像必须是2的幂)
- c – 有没有办法测试默认构造函数不存在?
- centos – 有没有办法在预先存在的服务器上运行kickstart脚本?
- CSS][Youtube to OBS] 有没有办法忽略在流屏幕聊天中显示的自定义消息/用户?
有没有办法忽略INSERT上不存在的列?(有没有办法忽略insert上不存在的列车)
我正在使用MySQL GUI,通过选择某些表并将INSERT
从备份转储生成的语句运行到空表(新模式)中,以将某些站点迁移到CMS的新版本。旧表中有几列在新表中不存在,因此脚本会因以下错误而停止:
脚本行:1个“字段列表”中的未知列“ user_id”
挑选要导出的所需列,或编辑转储文件将非常乏味且耗时。要解决此问题,我将在生成错误时创建未使用的列,通过运行查询导入数据,然后在处理完该表后删除未使用的列。我已经看过了INSERTIGNORE
,但这似乎是为了忽略重复的键(不是我要找的)。
有什么办法可以INSERT
在忽略目标表中不存在的列时执行一次?我正在寻找“无痛”的东西,例如一些现有的SQL功能。
为了明确起见,我正在处理大量备份文件,并将数据导入本地数据库进行测试,然后再将其移动到实时服务器中。我希望的那种解决方案的例子:
-- Don''t try to insert data from columns that don''t exist in "new_table"INSERT INTO `new_table` {IGNORE UNKNOWN COLUMNS} (`id`, `col1`, `col2`) VALUES (1, '''', ''''), (2, '''', '''');
如果根本不存在这样的问题,我很乐意将其作为答案并继续使用我当前的解决方法。
答案1
小编典典您当前的技术似乎很实用。只是一个小小的改变。
您可以仅导出模式,进行比较并找出所有表中所有缺少的列,而不必等待错误然后一个接一个地创建列。
这样一来,工作量就会减少。
您的gui将能够仅导出架构,否则mysqldump上的以下开关将有助于找出所有缺少的列。
mysqldump --no-data -uuser -ppassword --database dbname1 > dbdump1.sqlmysqldump --no-data -uuser -ppassword --database dbname2 > dbdump2.sql
区别dbdump1.sql和dbdump2.sql将为您提供这两个数据库的所有差异。
android – 有没有办法忽略libgdx图像限制? (图像必须是2的幂)
有没有什么好办法可以“通过”这个限制?例如:使用图像800×480.
解决方法
问候
c – 有没有办法测试默认构造函数不存在?
编辑:我在C 03的环境中陷入困境.牢记这一点,除了is_default_constructable还有其他选择吗?
解决方法
centos – 有没有办法在预先存在的服务器上运行kickstart脚本?
但我们将从已经安装了操作系统的ISP获得一台新服务器,并且可能没有远程控制台访问权限.
有没有办法重启Linux服务器(我们通常使用的操作系统)并强制使用kickstart脚本重新安装?
一旦配置了服务器和客户端机器,它将提供一个curses接口,以便在其他选项中选择kickstart文件.
CSS][Youtube to OBS] 有没有办法忽略在流屏幕聊天中显示的自定义消息/用户?
如何解决CSS][Youtube to OBS] 有没有办法忽略在流屏幕聊天中显示的自定义消息/用户??
我一直在使用 Streamlabs OBS 进行流式传输,他们的聊天屏幕小部件带有一个非常有用的“隐藏机器人/用户和以 ! 开头的消息”。实用程序。
我现在正在切换到 OBsstudio,我发现这个网站使聊天看起来不错:https://chatv2.septapus.com/ 通过向聊天窗口添加 CSS 文件,但是,我不能确定是否可以忽略某些用户(例如 Streamlabs 机器人)或以机器人前缀 (!) 开头的消息显示在屏幕上。有什么帮助或建议吗?
问题:https://i.imgur.com/PZqV414.png
自定义 CSS:
/* Background colors*/
body {
overflow: hidden;
background-color: rgba(0,0);
}
/* Transparent background. */
yt-live-chat-renderer {
background-color: transparent !important;
}
yt-live-chat-text-message-renderer,yt-live-chat-text-message-renderer[is-highlighted] {
background-color: transparent !important;
}
yt-live-chat-text-message-renderer[author-type="owner"],yt-live-chat-text-message-renderer[author-type="owner"][is-highlighted] {
background-color: transparent !important;
}
yt-live-chat-text-message-renderer[author-type="moderator"],yt-live-chat-text-message-renderer[author-type="moderator"][is-highlighted] {
background-color: transparent !important;
}
yt-live-chat-text-message-renderer[author-type="member"],yt-live-chat-text-message-renderer[author-type="member"][is-highlighted] {
background-color: transparent !important;
}
yt-live-chat-author-chip #author-name {
background-color: transparent !important;
}
/* Outlines */
yt-live-chat-renderer * {
text-shadow: -3px -3px #000000,-3px -2px #000000,-3px -1px #000000,-3px 0px #000000,-3px 1px #000000,-3px 2px #000000,-3px 3px #000000,-2px -3px #000000,-2px -2px #000000,-2px -1px #000000,-2px 0px #000000,-2px 1px #000000,-2px 2px #000000,-2px 3px #000000,-1px -3px #000000,-1px -2px #000000,-1px -1px #000000,-1px 0px #000000,-1px 1px #000000,-1px 2px #000000,-1px 3px #000000,0px -3px #000000,0px -2px #000000,0px -1px #000000,0px 0px #000000,0px 1px #000000,0px 2px #000000,0px 3px #000000,1px -3px #000000,1px -2px #000000,1px -1px #000000,1px 0px #000000,1px 1px #000000,1px 2px #000000,1px 3px #000000,2px -3px #000000,2px -2px #000000,2px -1px #000000,2px 0px #000000,2px 1px #000000,2px 2px #000000,2px 3px #000000,3px -3px #000000,3px -2px #000000,3px -1px #000000,3px 0px #000000,3px 1px #000000,3px 2px #000000,3px 3px #000000;
font-family: "Bebas Neue";
font-size: 35px !important;
line-height: 35px !important;
}
yt-live-chat-text-message-renderer #content,yt-live-chat-legacy-paid-message-renderer #content {
overflow: initial !important;
}
/* Hide scrollbar. */
yt-live-chat-item-list-renderer #items{
overflow: hidden !important;
}
yt-live-chat-item-list-renderer #item-scroller{
overflow: hidden !important;
}
/* Hide header and input. */
yt-live-chat-header-renderer,yt-live-chat-message-input-renderer {
display: none !important;
}
/* Reduce side padding. */
yt-live-chat-text-message-renderer,yt-live-chat-legacy-paid-message-renderer {
padding-left: 4px !important;
padding-right: 4px !important;
}
yt-live-chat-paid-message-renderer #header {
padding-left: 4px !important;
padding-right: 4px !important;
}
/* Avatars. */
yt-live-chat-text-message-renderer #author-photo,yt-live-chat-paid-message-renderer #author-photo,yt-live-chat-legacy-paid-message-renderer #author-photo {
display: none !important;
width: 24px !important;
height: 24px !important;
border-radius: 24px !important;
margin-right: 6px !important;
}
/* Hide badges. */
yt-live-chat-text-message-renderer #author-badges {
vertical-align: text-top !important;
}
/* Timestamps. */
yt-live-chat-text-message-renderer #timestamp {
color: #999999 !important;
font-family: "Bebas Neue";
font-size: 16px !important;
line-height: 16px !important;
}
/* Badges. */
yt-live-chat-text-message-renderer #author-name[type="owner"],yt-live-chat-text-message-renderer #author-name.owner,yt-live-chat-text-message-renderer yt-live-chat-author-badge-renderer[type="owner"] {
color: #1477b0 !important;
}
yt-live-chat-text-message-renderer #author-name[type="moderator"],yt-live-chat-text-message-renderer #author-name.moderator,yt-live-chat-text-message-renderer yt-live-chat-author-badge-renderer[type="moderator"] {
color: #ffc251 !important;
}
yt-live-chat-text-message-renderer #author-name[type="member"],yt-live-chat-text-message-renderer #author-name.member,yt-live-chat-text-message-renderer yt-live-chat-author-badge-renderer[type="member"] {
color: #9319fd !important;
}
/* Channel names. */
yt-live-chat-text-message-renderer #author-name {
color: #cccccc !important;
font-family: "Bebas Neue";
font-size: 40px !important;
line-height: 40px !important;
}
yt-live-chat-text-message-renderer #author-name::after {
content: ":";
margin-left: 3px;
}
/* Messages. */
yt-live-chat-text-message-renderer #message,yt-live-chat-text-message-renderer #message * {
color: #ffffff !important;
font-family: "Bebas Neue";
font-size: 35px !important;
line-height: 35px !important;
}
/* SuperChat/Fan Funding Messages. */
yt-live-chat-paid-message-renderer #author-name,yt-live-chat-paid-message-renderer #author-name *,yt-live-chat-legacy-paid-message-renderer #event-text,yt-live-chat-legacy-paid-message-renderer #event-text * {
color: #ffffff !important;
font-family: "Bebas Neue";
font-size: 30px !important;
line-height: 30px !important;
}
yt-live-chat-paid-message-renderer #purchase-amount,yt-live-chat-paid-message-renderer #purchase-amount *,yt-live-chat-legacy-paid-message-renderer #detail-text,yt-live-chat-legacy-paid-message-renderer #detail-text * {
color: #ffffff !important;
font-family: "Bebas Neue";
font-size: 28px !important;
line-height: 28px !important;
}
yt-live-chat-paid-message-renderer #content,yt-live-chat-paid-message-renderer #content * {
color: #ffffff !important;
font-family: "Bebas Neue";
font-size: 25px !important;
line-height: 25px !important;
}
yt-live-chat-paid-message-renderer {
margin: 4px 0 !important;
}
yt-live-chat-legacy-paid-message-renderer {
background-color: #9319fd !important;
margin: 4px 0 !important;
}
yt-live-chat-text-message-renderer a,yt-live-chat-legacy-paid-message-renderer a {
text-decoration: none !important;
}
yt-live-chat-text-message-renderer[is-deleted],yt-live-chat-legacy-paid-message-renderer[is-deleted] {
display: none !important;
}
yt-live-chat-ticker-renderer {
background-color: transparent !important;
Box-shadow: none !important;
}
yt-live-chat-ticker-renderer {
display: none !important;
}
yt-live-chat-ticker-paid-message-item-renderer,yt-live-chat-ticker-paid-message-item-renderer *,yt-live-chat-ticker-sponsor-item-renderer,yt-live-chat-ticker-sponsor-item-renderer * {
color: #ffffff !important;
font-family: "Bebas Neue";
}
yt-live-chat-mode-change-message-renderer,yt-live-chat-viewer-engagement-message-renderer,yt-live-chat-restricted-participation-renderer {
display: none !important;
}
yt-live-chat-banner-manager {
display: none !important;
}
@keyframes anim {
0% { opacity: 0; transform: translateX(16px); }
0.6578947368421052% { opacity: 1; transform: none;}
99.3421052631579% { opacity: 1; transform: none;}
100% { opacity: 0; transform: translateX(-16px); }
}
yt-live-chat-text-message-renderer,yt-live-chat-legacy-paid-message-renderer {
animation: anim 30400ms;
animation-fill-mode: both;
}
yt-live-chat-action-panel-renderer,yt-live-chat-renderer #action-panel {
display: none !important;
}```
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
今天关于有没有办法忽略INSERT上不存在的列?和有没有办法忽略insert上不存在的列车的分享就到这里,希望大家有所收获,若想了解更多关于android – 有没有办法忽略libgdx图像限制? (图像必须是2的幂)、c – 有没有办法测试默认构造函数不存在?、centos – 有没有办法在预先存在的服务器上运行kickstart脚本?、CSS][Youtube to OBS] 有没有办法忽略在流屏幕聊天中显示的自定义消息/用户?等相关知识,可以在本站进行查询。
本文标签: