Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 3 of 3 total |
Help with SQL!!! |
Thu, Oct 4 2007 7:50 AM | Permanent Link |
Roger Oliveira | Hello, I have this table: ID AUTOINC OPC STRING 30 VALOR STRING 10 DESCRICAO STRING 30 ID OPC VALOR DESCRICAO 1 [TOLANDON]N20:83 1 TURNO 10 [TOLGF04]B3:1/1 0 INTERVALO_REFEICOES 20 [TOLANDON]S:18 2007 ANO 30 [TOLANDON]S:20 3 DIA 40 [TOLANDON]S:19 10 MES And I need this result ANO MES DIA 2007 10 3 OR DATA 2007-10-03 Thanks! Roger Oliveira. |
Thu, Oct 4 2007 8:28 AM | Permanent Link |
"Robert" | "Roger Oliveira" <roger@puxtreme.com.br> wrote in message news:F37704A4-C08C-4105-9AE3-1DA584D171B9@news.elevatesoft.com... > > Hello, I have this table: > > ID AUTOINC > OPC STRING 30 > VALOR STRING 10 > DESCRICAO STRING 30 > > ID OPC VALOR DESCRICAO > 1 [TOLANDON]N20:83 1 TURNO > 10 [TOLGF04]B3:1/1 0 INTERVALO_REFEICOES > 20 [TOLANDON]S:18 2007 ANO > 30 [TOLANDON]S:20 3 DIA > 40 [TOLANDON]S:19 10 MES > See my reply to the other post. Basically, you create a memory table with the fields you need and an empty record create table memory\temp1 (ano integer, dia integer, mes integer); insert into memory\temp1 values(0,0,0); and then you update using your table set memory ano = table.ano where descricao = 'ANO', etc. Robert > > And I need this result > > ANO MES DIA > 2007 10 3 > > OR > > DATA > 2007-10-03 > > > Thanks! > > Roger Oliveira. > > |
Thu, Oct 4 2007 9:03 AM | Permanent Link |
"Robert" | "Robert" <ngsemail2005withoutthis@yahoo.com.ar> wrote in message news:750B7491-3E76-4A79-B2F3-6607DED0716B@news.elevatesoft.com... > > set memory ano = table.ano where descricao = 'ANO', etc. should be set memory.ano = table.valor R |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |