我必须在 PostgreSQL 中创建一个函数来显示作为参数传递的字符串的成对字符。
我的想法是循环遍历字符串的字符,就像我在 C 或 Java 或其他语言中那样,但我不知道如何单独访问一个字符,例如,str[i]作为str一个字符串,和i字符的位置。
我所说的“字符对”是指字符对位置中的字符:即字符串中位置模 2 = 0 的字符。如果输入参数是“String”,则函数显示的字符将为“t”(即位置2,从位置1开始),以及“i”(即位置4)、“g”(即位置6)。
首先,我是NHibernate的新手.我在许多页面中搜索了QueryOver的内容,但对我来说最有利可图的页面是http://nhibernate.info/blog/2009/12/17/queryover-in-nh-3-0.html.多亏了它,我想到了一个"半解决方案",但我需要这个解决方案更好.
我有这些课程:
public class Variable
{
public virtual int Id {get; set; }
public virtual string Nombre { get; set; }
public virtual string Descripcion { get; set; }
public virtual IList<ValorVariable> Valores { get; set; }
public virtual bool Temporal { get; set; }
public virtual bool Eliminado{ get; set; }
}
public class ValorVariable
{
public virtual int Id {get; set; }
public virtual int IdVariable { get; set; }
public virtual Variable Variable { get; …Run Code Online (Sandbox Code Playgroud)