我知道的唯一方法是show create table MyTable
答案 0 :(得分:10)
SHOW TABLE STATUS LIKE "tablename";
auto_increment
列会显示计数。
答案 1 :(得分:9)
SELECT `AUTO_INCREMENT`
FROM `information_schema`.`TABLES`
WHERE `TABLE_SCHEMA` = SCHEMA()
AND `TABLE_NAME` = 'tbl_name';
答案 2 :(得分:1)
您可以使用LAST_INSERTED_ID
功能。
答案 3 :(得分:0)
也许可以,但是我没有RENDER_ERROR。 这是电视日志的副本,其中BUFFERING_START并在BUFFERING_COMPLETE之前重新启动电视
2018/08/01 10:23:54.934-#67-DBG-[samsung_vod_player]完整传输数据:{“ transport_type”:“ http_file”,“ mimetype”:“ video / mp2t”,“ address”:“ http://contents.teveo.local:81/Movies_1806_PacificRimUprising_mv_multi_PAL_scas_enc.m2te“,”会话“:269708,”持续时间“:6394,” resumeTimeCode“:176,” drm“:” lynk“,” drmServer“:” 10.11.0.254“,”令牌“:” 198“ ,“ audioTracks”:[{“ pid”:785,“ language”:“ en”},{“ pid”:787,“ language”:“ fr”},{“ pid”:788,“ language”:“ it“},{” pid“:786,” language“:” es“},{” pid“:789,” language“:” ru“},{” pid“:784,” language“:” de“ }],“ contentFileId”:1395} 2018/08/01 10:23:54.946-#68-DBG-[samsung_vod_player] [269708]首选的音频语言:[fr] 2018/08/01 10:23:54.948-#69-DBG-[samsung_vod_player] [269708] VOD流被声明为加密 2018/08/01 10:23:54.950-#70-DBG-[samsung_vod_player] [269708] [decoder LOCK] <<<由[init]发布 2018/08/01 10:23:54.960-#71-DBG-[samsung_vod_player] [269708] _dispatchEvent(init) 2018/08/01 10:23:54.963-#72-DBG-[samsung_vod_player] [269708] [解码器锁定] >>>被[开始]获取 2018/08/01 10:23:54.969-#73-DBG-[samsung_vod_player] [269708] _START 2018/08/01 10:23:54.978-#74-DBG-[samsung_vod_player] [269708] _KILL(play_requested = false) 2018/08/01 10:23:54.994-#75-DBG-[samsung_vod_player] [269708]选择MEDIA来源 2018/08/01 10:23:55.004-#76-DBG-[samsung_vod_player] [269708] EventWatcher:等待事件[[SOURCE_CONNECTED]]中的一个... 2018/08/01 10:23:55.010-#77-DBG-[samsung_vod_player] [269708] _dispatchEvent(等待) 2018/08/01 10:23:55.720-#78-DBG-[samsung_vod_player] [269708]从电视插件收到的事件:126 | {param1:0,parm2:48,parm3:43,param2:48,param3:43} 2018/08/01 10:23:55.721-#79-DBG-[samsung_vod_player] [269708]设备源[43]就绪 2018/08/01 10:23:55.723-#80-DBG-[samsung_vod_player] [269708] EventWatcher:[SOURCE_CONNECTED]事件已收到=>挂起的请求已成功 2018/08/01 10:23:55.726-#81-DBG-{TerminalInterfaceSamsungPluginGenericHandler}从SEF_TV插件收到的事件:0 | 126 | {param1:0,parm2:48,parm3:43,param2:48,param3:43} 2018/08/01 10:23:55.730-#82-DBG-[samsung_vod_player] [269708]使用服务器10.11.0.254初始化Lynk DRM 2018/08/01 10:23:56.475-#83-INF-[samsung_vod_player] [269708]开始播放VOD内容的解码器:http://contents.teveo.local:81/Movies_1806_PacificRimUprising_mv_multi_PAL_scas_enc.m2te?token=198|COMPONENT=LYNK|TYPE=2 2018/08/01 10:23:56.691-#84-DBG-[samsung_vod_player] [269708] EventWatcher:正在等待事件之一[[RENDERING_START“] ... 2018/08/01 10:24:01.547-#85-DBG-[samsung_vod_player] [269708]从播放器插件收到事件:STREAM_INFO_READY 2018/08/01 10:24:01.583-#86-DBG-[samsung_vod_player] [269708]从Player插件收到事件:BUFFERING_START 2018/08/01 10:30:02.867-DBG-记录器-----------页面上下文[mw_online |#62] ---------- 2018/08/01 10:29:48.827-#1-DBG-{TTerminalInterfaceSamsung.GetLocalData}密钥{device_ref_timestamp}在本地数据中找不到 2018/08/01 10:29:48.934-#2-DBG-{TTerminalInterfaceSamsung.InitPlugin}插件'时间'已成功初始化 2018/08/01 10:29:48.941-#3-DBG-{TTerminalInterfaceSamsung.GetLocalData}值{platform_clock_timestamp_fix => 3600000}从LOCAL_STORAGE中检索 2018/08/01 10:29:48.946-#4-DBG-{TTerminalInterfaceSamsung.GetLocalData}值{timezone_offset_to_gmt => 120}从LOCAL_STORAGE中检索 2018/08/01 10:29:48.948-#5-DBG-{TTerminalInterface.GetTimezoneOffsetFix}时区偏移量修复已更新至:0分钟 2018/08/01 10:29:48.957-#6-DBG-{TTerminalInterfaceSamsung.GetLocalData}值{timestamp_fix => 116}从LOCAL_STORAGE中检索 2018/08/01 10:29:49.069-#7-DBG-{TTerminalInterface.Init2}第一次更新将在1969秒进行 2018/08/01 10:29:49.082-#8-DBG-{TTerminalInterface.InitAjaxClient} Ajax客户端'update_time'已成功初始化 2018/08/01 10:29:49.086-#9-DBG-{TTerminalInterface.InitAjaxClient} Ajax客户端'check_server'已成功初始化 2018/08/01 10:29:49.088-#10-DBG-{TTerminalInterface.StartTimer}启动计时器'first_time_update'[1968.688秒] 2018/08/01 10:29:49.090-#11-DBG-{TTerminalInterface.StartTimer}启动计时器'check_server'[30秒] 2018/08/01 10:29:49.096-#12-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件注册的回调[卸载]:函数TerminalInterfaceUnloadEventCallback() 2018/08/01 10:29:49.101-#13-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[beforeunload]注册的回调:函数TerminalInterfaceBeforeUnloadEventCallback() 2018/08/01 10:29:49.106-#14-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[load]注册的回调:函数TerminalInterfaceLoadEventCallback() 2018/08/01 10:29:49.110-#15-DBG-{TTerminalInterface.RegisterEventCallback}已为DOM事件注册注册回调[错误]:函数TerminalInterfaceErrorEventCallback(e) 2018/08/01 10:29:49.112-#16-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[消息]注册的回调:函数TerminalInterfaceWindowMessageEventCallback(e) 2018/08/01 10:29:49.115-#17-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件注册的回调[unhandledrejection]:函数(e){e.preventDefault(),g_terminal.LogDebug(“ {TTerminalInterface}未处理承诺拒绝... 2018/08/01 10:29:49.120-#18-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件注册的回调[加载]:函数(){setTimeout('window.nav = space_nav = new SpatialNav(spatial_nav_config); $ (窗口).tr ... 2018/08/01 10:29:49.123-#19-DBG-{TTerminalInterface.Init2} >>>>>>已初始化TerminalInterface [#62 | http://des-service-node.eona-des.fr/terminal/state/startup/boot] 2018/08/01 10:29:49.130-#20-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[load]注册的回调:函数TerminalInterfaceSamsungLoadHandler() 2018/08/01 10:29:49.133-#21-DBG-{TTerminalInterface.ExecuteCallback}调用回调... [全局实例'init'/回调#0] 2018/08/01 10:29:49.134-#22-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[消息]注册的回调:函数keyManagementWindowMessageEventCallback(e) 2018/08/01 10:29:49.135-#23-DBG-{TTerminalInterface.ExecuteCallback}以结果=未定义执行的回调 2018/08/01 10:29:49.135-#24-DBG-{TTerminalInterface.ExecuteCallback}调用回调... [全局实例'init'/回调#1] 2018/08/01 10:29:49.138-#25-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[keydown]注册的回调:函数_vkey_keydown_handler(e) 2018/08/01 10:29:49.139-#26-DBG-{TTerminalInterface.RegisterEventCallback}为DOM事件[load]注册的回调:函数_vkey_load_handler() 2018/08/01 10:29:49.140-#27-DBG-{TTerminalInterface.ExecuteCallback}以结果=未定义执行的回调 2018/08/01 10:29:49.170-#28-INF-----------------------------终端10.11.1.11已启动。