influxdb 查询报错ERR: error parsing query: found NAME, expected identifier, string

当查询filedkey是name,出现下面报错。 select * from mytable where name="lisi"
ERR: error parsing query: found NAME, expected identifier, string, number, bool at line 1, char 29

把name加上双引号,问题解决。select * from mytable where "name"="lisi"

问题原因可能是因为name是一个influxdb里面的关键字引起的

 

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'E:\Keil5 MDK\ARM\ARMCC\Bin' Rebuild target 'ENC28J60' assembling startup_stm32f10x_hd.s... compiling stm32f10x_it.c... stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; stm32f10x_it.c: 1 warning, 1 error compiling core_cm3.c... compiling system_stm32f10x.c... stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; system_stm32f10x.c: 1 warning, 1 error compiling stm32f10x_gpio.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_gpio.c: 1 warning, 1 error compiling misc.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\misc.c: 1 warning, 1 error compiling stm32f10x_rcc.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_rcc.c: 1 warning, 1 error compiling main.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; main.c: 1 warning, 1 error compiling stm32f10x_fsmc.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_fsmc.c: 1 warning, 1 error compiling stm32f10x_spi.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_spi.c: 1 warning, 1 error compiling stm32f10x_usart.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_usart.c: 1 warning, 1 error compiling stm32f10x_tim.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_tim.c: 1 warning, 1 error compiling stm32f10x_exti.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\FWLIB\STM32F10x_FWLib\src\stm32f10x_exti.c: 1 warning, 1 error compiling delay.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\SYSTEM\delay\delay.c: 1 warning, 1 error compiling sys.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\SYSTEM\sys\sys.c: 1 warning, 1 error compiling usart.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\SYSTEM\usart\usart.c: 1 warning, 1 error compiling led.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\LED\led.c: 1 warning, 1 error compiling key.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\KEY\key.c: 1 warning, 1 error compiling spi.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\SPI\spi.c: 1 warning, 1 error compiling enc28j60.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\ENC28J60\enc28j60.c: 1 warning, 1 error compiling lcd.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\LCD\lcd.c: 1 warning, 1 error compiling sram.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\SRAM\sram.c(29): error: #20: identifier "RCC_AHBPeriph_FSMC" is undefined RCC_AHBPeriphClockCmd(RCC_AHBPeriph_FSMC,ENABLE); ..\HARDWARE\SRAM\sram.c: 1 warning, 2 errors compiling timer.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\HARDWARE\TIMER\timer.c: 1 warning, 1 error compiling etharp.c... compiling usmart.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\USMART\usmart.c: 1 warning, 1 error compiling autoip.c... compiling usmart_str.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\USMART\usmart_str.c: 1 warning, 1 error compiling malloc.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\MALLOC\malloc.c: 1 warning, 1 error compiling usmart_config.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\USMART\usmart_config.c: 1 warning, 1 error compiling igmp.c... compiling icmp.c... compiling inet.c... compiling lwip_comm.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\LWIP\lwip_app\lwip_comm\lwip_comm.c: 1 warning, 1 error compiling inet_chksum.c... compiling ethernetif.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\LWIP\lwip-1.4.1\src\netif\ethernetif.c: 1 warning, 1 error compiling ip_addr.c... compiling def.c... compiling dns.c... compiling ip.c... compiling lwip_sys.c... compiling ip_frag.c... compiling init.c... compiling dhcp.c... compiling mem.c... compiling memp.c... compiling netif.c... compiling raw.c... compiling pbuf.c... compiling stats.c... compiling tcp.c... compiling timers.c... compiling udp.c... compiling tcp_out.c... compiling tcp_in.c... compiling api_lib.c... compiling api_msg.c... compiling err.c... compiling netbuf.c... compiling netdb.c... compiling netifapi.c... compiling sockets.c... compiling tcpip.c... compiling sys_arch.c... ..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; ..\LWIP\arch\sys_arch.c: 1 warning, 1 error "..\OBJ\NRF24L01.axf" - 29 Error(s), 28 Warning(s). Target not created. Build Time Elapsed: 00:00:04我想移植lwip到stm32f107的标准库中这些报错到底是怎么回事
最新发布
11-27
Rebuild started: Project: uartprintf *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\keil_mdk\ARM\ARMCC\Bin' Rebuild target 'uartprintf' compiling stm32l4xx_hal_tim_ex.c... compiling stm32l4xx_hal_msp.c... compiling stm32l4xx_hal_tim.c... compiling stm32l4xx_hal_uart_ex.c... compiling stm32l4xx_it.c... compiling usart.c... compiling gpio.c... compiling main.c... ../Src/main.c(69): error: #140: too many arguments in function call uwRet = LOS_TaskCreate(&taskId1, NULL, (VOID *)Task1, 0x800, 4, 0, 0, 0); // ??Task1 ../Src/main.c(75): error: #140: too many arguments in function call uwRet = LOS_TaskCreate(&taskId2, NULL, (VOID *)Task2, 0x800, 4, 0, 0, 0); // ??Task2 ../Src/main.c(81): error: #159: declaration is incompatible with previous "AppTaskCreate" (declared at line 51) UINT32 AppTaskCreate(VOID) { ../Src/main.c(81): error: #65: expected a ";" UINT32 AppTaskCreate(VOID) { ../Src/main.c(102): warning: #12-D: parsing restarts here after previous syntax error return -1; ../Src/main.c(103): warning: #940-D: missing return statement at end of non-void function "AppTaskCreate" } ../Src/main.c(68): warning: #177-D: variable "taskId3" was declared but never referenced UINT32 taskId1, taskId2, taskId3; ../Src/main.c(105): error: #77-D: this declaration has no storage class or type specifier uwRet = LOS_TaskCreate(&taskId2, NULL, (VOID *)Task2, 0x800, 4, 0, 0, 0); ../Src/main.c(105): error: #59: function call is not allowed in a constant expression uwRet = LOS_TaskCreate(&taskId2, NULL, (VOID *)Task2, 0x800, 4, 0, 0, 0); ../Src/main.c(105): error: #20: identifier "taskId2" is undefined uwRet = LOS_TaskCreate(&taskId2, NULL, (VOID *)Task2, 0x800, 4, 0, 0, 0); ../Src/main.c(106): error: #169: expected a declaration if (uwRet != LOS_OK) { ../Src/main.c(111): warning: #12-D: parsing restarts here after previous syntax error uwRet = LOS_TaskCreate(&taskId3, NULL, (VOID *)Task3, 0x800, 4, 0, 0, 0); ../Src/main.c(112): error: #169: expected a declaration if (uwRet != LOS_OK) { ../Src/main.c(118): warning: #12-D: parsing restarts here after previous syntax error LOS_SemPost(g_semTask1ToTask2); ../Src/main.c(120): error: #169: expected a declaration return 0; ../Src/main.c(121): error: #169: expected a declaration } ../Src/main.c(128): warning: #12-D: parsing restarts here after previous syntax error LOS_SemPost(g_semTask1ToTask2); ../Src/main.c(130): error: #169: expected a declaration return 0; ../Src/main.c(131): warning: #1-D: last line of file ends without a newline } ../Src/main.c(131): error: #169: expected a declaration } ../Src/main.c: 7 warnings, 13 errors compiling stm32l4xx_hal.c... compiling stm32l4xx_hal_uart.c... compiling stm32l4xx_hal_i2c.c... compiling stm32l4xx_hal_dma_ex.c... compiling stm32l4xx_hal_i2c_ex.c... compiling stm32l4xx_hal_gpio.c... compiling stm32l4xx_hal_pwr.c... compiling stm32l4xx_hal_flash_ramfunc.c... compiling stm32l4xx_hal_flash.c... compiling stm32l4xx_hal_dma.c... compiling stm32l4xx_hal_flash_ex.c... assembling los_startup_keil.s... compiling stm32l4xx_hal_pwr_ex.c... assembling los_dispatch_keil.S... compiling stm32l4xx_hal_rcc.c... compiling stm32l4xx_hal_rcc_ex.c... compiling system_stm32l4xx.c... compiling stm32l4xx_hal_exti.c... compiling stm32l4xx_hal_cortex.c... compiling los_hwi.c... ..\liteos\arch\arm\arm-m\src\los_hwi.c(219): warning: #186-D: pointless comparison of unsigned integer with zero if ((usHwiPrio > OS_HWI_PRIO_LOWEST) || (usHwiPrio < OS_HWI_PRIO_HIGHEST)) ..\liteos\arch\arm\arm-m\src\los_hwi.c: 1 warning, 0 errors compiling los_sys.c... compiling los_hw_tick.c... compiling los_hw.c... compiling los_tick.c... compiling los_priqueue.c... compiling los_swtmr.c... compiling los_task.c... compiling los_event.c... compiling los_memcheck.c... compiling los_slabmem.c... compiling los_mux.c... compiling los_timeslice.c... compiling los_heap.c... compiling los_memstat.c... compiling los_sem.c... compiling los_slab.c... compiling los_memory.c... compiling los_queue.c... compiling los_err.c... compiling los_membox.c... compiling los_misc.c... compiling los_init.c... compiling los_tickless.c... compiling cmsis_liteos.c... "uartprintf\uartprintf.axf" - 13 Error(s), 8 Warning(s). Target not created. Build Time Elapsed: 00:00:24 根据这个帮我改一下错误
06-10
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值