English
Forum

SQL Select with FeldPOSITION?

 

Christof
Neuß
Hi,

Perhaps knows Yes someone here The Solution.
i want over a Selectanweisung simply the first three Split of/ one scheduler inquire. any boxes are me To long and there it it always others tables are, can/I will neither always very The Feldnamen indicate. gives it something in the manner

SELECT Field(1),Field(2),Field(3) From MeineTabelle ???

THANK YOU

Christof
 
Win10 16 GB RAM
10/26/11  
 




Detlef
Jagolski
Hi,

what kind of data base have You whom?
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
10/26/11  
 



Hello Christof,

I faith You seek something like How show index, show fields or. show full fields and could so The Tabellenstruktur invite and so the Statement first produce: [...] 
 
10/26/11  
 




Uwe
''Pascal''
Niemeier
Hi people!

this could help:
CompileMarkSeparation
window 600,600
def %SQL_HANDLE_STMT 3
def %SQL_NTS        -3
'--Initialisierung der Datenbank (Typ/Pfad/Name/Schreibweise bitte anpassen!)
'var File$="C:\1Test\"
'var Init$="Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ="+File$+";Extensions=csv"
'var Name$="Test1.csv"
'var File$="C:\1Test\Test1.xls"
'var Init$="Driver={Microsoft Excel-Treiber (*.xls)};DBQ="+File$
'var Name$="[Eingang$]"
var File$="D:\Archive\Einstellungen\Alcatel 701\Nachricht.mdb"
var Init$="Driver={Microsoft Access Driver (*.mdb)};Dbq="+File$'+";Uid=;Pwd=;"
var Name$="Inbox"
db("SQLInit",Init$)
declare Handle&
external("odbc32.dll","SQLAllocHandle",%SQL_HANDLE_STMT,&SQLDBC,addr(Handle&))
var Command$="SELECT TOP 1 * FROM "+Name$'--SQL-Statement zur Auswahl des 1. Datensatzes
external("odbc32.dll","SQLExecDirect",Handle&,Command$,%SQL_NTS)
declare Count&
external("odbc32.dll","SQLNumResultCols",Handle&,addr(Count&))'--Anzahl Felder
declare Text#:dim Text#,255

whileloop 1,Count&

    external("odbc32.dll","SQLDescribeCol",Handle&,&loop,Text#,255,0,0,0,0,0)
    print &loop,string$(Text#,0)

endwhile

print "Fertig"
external("odbc32.dll","SQLFreeHandle",%SQL_HANDLE_STMT,Handle&)
db("SQLDone")
dispose Text#
waitkey

SeeYou
Pascal
 
10/29/11  
 




Christof
Neuß
Hello people,

THANK YOU, so be I moreover come.
Perhaps must I me once more a function write, The simply from the suitable indicated The Feldposition or. whom/The Feldnamen determined and then the value outputs. the wars I there.
 
Win10 16 GB RAM
10/31/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.592 Views

Untitledvor 0 min.
Torben Nissen02/08/19
iF09/13/15
mein05/19/13
RudiB.11/08/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie