首页 > 数据库 >LightDB ltsql prompt支持与/**/注释共同使用

LightDB ltsql prompt支持与/**/注释共同使用

时间:2023-08-08 19:33:24浏览次数:55  
标签:ltsql 1212121212 prompt LightDB column ---------- mytestdb1mytestdb1select row

在LightDB 23.2版本中,已经在ltsql中兼容支持了Oracle的prompt语法(详见 https://blog.csdn.net/z465759695/article/details/130554022),但是尚不支持/**/与prompt混用的情况,例如:

在实际的业务场景中,/**/注释后面执行prompt是比较常见的初始脚本格式。 

在LightDB 23.3版本中,已对上述情况进行支持,如下:

1).

/* 1212121212 */
prompt mytestdb1
mytestdb1
select 1;
?column?
----------
1
(1 row)

 

2).

/* 1212121212 */
prompt

prompt mytestdb1
mytestdb1
select 1;
?column?
----------
1
(1 row)

 

3).

/* 12121 prompt 21212 */
prompt

prompt mytestdb1
mytestdb1
select 1;
?column?
----------
1
(1 row)

 

4).

/* 1212121212 *//* 1212121212 */
prompt

prompt mytestdb1
mytestdb1
select 1;
?column?
----------
1
(1 row)

 

5).

/* 12121 /* 1212121212 */ 21212 */
prompt

prompt mytestdb1
mytestdb1
select 1;
?column?
----------
1
(1 row)

 

6).

/*
* 1212121212
*/
prompt mytestdb2
mytestdb2
select 2;
?column?
----------
2
(1 row)

 

7).

/*
* 1212121212
*/
prompt

prompt mytestdb2
mytestdb2
select 2;
?column?
----------
2
(1 row)

 

8).

/*
* 1212121212
prompt
*/
prompt

prompt mytestdb2
mytestdb2
select 2;
?column?
----------
2
(1 row)

 

9).

/*
* 12121 /* 1212121212 */ 21212
*/
prompt

prompt mytestdb2
mytestdb2
select 2;
?column?
----------
2
(1 row)

 

10).

/* /*
* 1212121212
*/ */
prompt

prompt mytestdb2
mytestdb2
select 2;
?column?
----------
2
(1 row)

 

11).

/*
* 1212121212
*/
create table if not exists mytest(
id int,
prompt text
);

注意,以下情况prompt不支持:

1). 

create table if not exists mytest(
id int,
/*1212121*/
prompt text
);

2). prompt不是在一行的起始位置,如

/*12121212*/prompt 123

select 1;prompt 123

标签:ltsql,1212121212,prompt,LightDB,column,----------,mytestdb1mytestdb1select,row
From: https://www.cnblogs.com/xxl-cr7/p/17615213.html

相关文章

  • Prompt Playground 7月开发记录
    PromptPlayground2023年7月开发记录上个月的时候,出于日常工作需求,做了一个简单的提示词调试工具PromptPlayground。这个工具的初衷是为了方便测试,所以没有做太多的功能,只是简单的实现了一个提示词的运行界面,可以方便的调整参数,查看结果。尤其是希望没有开发经验的人也可以方......
  • Uncaught SyntaxError: Identifier 'originalPrompt' has already been declared
    控制台报错:UncaughtSyntaxError:Identifier'originalPrompt'hasalreadybeendeclared网上查询相关资料,预测是GoogleChrome浏览器安装了插件跟Vue项目运行代码出现了冲突。解决方法:关闭相关插件即可,【可能导致问题产生的插件有:SeleniumIDE】。参考文档:http://www.dtm......
  • element-ui - $prompt非空验证
    <template><div><el-buttontype="primary"@click="click">查询</el-button></div></template><script>exportdefault{data(){return{}},methods:{click()......
  • 在langchain中使用带简短知识内容的prompt template
    简介langchain中有个比较有意思的prompttemplate叫做FewShotPromptTemplate。他是这句话的简写:"Prompttemplatethatcontainsfewshotexamples."什么意思呢?就是说在Prompttemplate带了几个比较简单的例子。然后把这些例子发送给LLM,作为简单的上下文环境,从而为LLM提供额外......
  • prompt提示词
    1:提示模型在匆忙做出结论之前思考解决方案——如让模型解题,让模型确定学生做题的解决方案等 2:减少模型产生幻觉方法:要求模型首先从文本中找到任何相关的引用,然后要求它使用这些引用来回答问题 3:介绍某些产品营销方案类似时,如想缩短答复内容,可加上请用50字概括等内容 4:需......
  • ltsql 增加语法兼容类型提示
    背景lightdb目前兼容mysql,oracle语法。为了提醒用户正在使用的是哪种类型的数据库,lightdb在ltsql端增加了连接提示。用户在初次连接数据库或在psql内切换数据库时,会打印一条消息提示。该功能出现在lightdb版本:LightDB1.0.V202303.00.000测试用例$#不带参数运行,......
  • Prompt Learning: ChatGPT 也在用的 NLP 新范式
    编者按:自GPT-3以来,大语言模型进入了新的训练范式,即“预训练模型+Promplearning”。在这一新的范式下,大语言模型呈现出惊人的zero-shot和few-shot能力,使用较少的训练数据来适应新的任务形式。最近火爆出圈的ChatGPT是利用这一方式。简单理解Promptlearning,其核心就是以特定的模板,......
  • 《Prompting Is Programming: A Query Language for Large Language Models》论文学习
    一、前言大型语言模型在诸如对话问答、代码生成等广泛任务上表现出了出色的性能。在较高的层次上,给定一段输入,大语言模型可用于按照概率统计方式自动补全序列。在此基础上,用户用指令(instructions)或示例(examples)去提示(prompt)大语言模型,以实施各种下游任务。本质上,提示(prompt)方法......
  • 面向普通用户和开发者的ChatGPT Prompt Engineering 终极指南
    你准备好发掘ChatGPT的全部潜力了吗?想象一下拥有一个AI工具,它能在很多方面帮助你——从回答问题和创作有趣内容到提供个性化建议。这就是「PromptEngineering」的用武之地——一种有效且强大的方法,通过精心创建Prompt和指导,让ChatGPT的工作更出色。在这篇文章中,我......
  • 大语言模型的预训练4:指示学习Instruction Learning详解以及和Prompt Learning,In-cont
    大语言模型的预训练[4]:指示学习InstructionLearning:Entailment-oriented、PLMoriented、human-oriented详解以及和PromptLearning,In-contentLearning区别1.指示学习的定义InstructionLearning让模型对题目/描述式的指令进行学习。针对每个任务,单独生成指示,通过在若干个......