Solved

INSERT INTO STATEMENT  -  -  Syntax

Posted on 1998-06-26
8
261 Views
Last Modified: 2010-05-03
Using a table with 24 fields (both number and text fields) is there a limit in length of Insert Into Statement (it takes 2 lines), and what is the proper syntax?  (Attempted a variety of ways - no success, get a Syntax Error in INSERT INTO Statement)
0
Comment
Question by:cbugler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 6

Expert Comment

by:anthonyc
ID: 1464371
insert into table1(column1, column2, column3, column4, ..., column24) values(value1, value2, value3, value4, ..., value24)
0
 

Author Comment

by:cbugler
ID: 1464372
I know the basic syntax for the statement.  The problem may be the length or the number fields.  We use '" & value & "', not sure if there is a better option for the number fields.  Also the field names are rather long, is there a limit in the total number of characters allowed in the total of field names (not one name).

0
 
LVL 6

Expert Comment

by:anthonyc
ID: 1464373
oh well, figure it out yourself.. You said you needed syntax, I gave it, and now I am wrong.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:cbugler
ID: 1464374
I know the basic syntax for the statement.  The problem may be the length or the number fields.  We use '" & value & "', not sure if there is a better option for the number fields.  Also the field names are rather long, is there a limit in the total number of characters allowed in the total of field names (not one name).

0
 

Author Comment

by:cbugler
ID: 1464375
AnthonyC

Sorry if the rejection of your answer offended you.  I'm looking for an answer to my question not an arguement.  Yes you gave me the basic syntax and your right, and tha'ts the way I have been doing it, but I am still getting an error, so I was looking for more detail and an answer regarding the length of the statement.  
0
 
LVL 18

Expert Comment

by:deighton
ID: 1464376
Do you need to wrap your field names in [] ie [field name1]

Just a thought!

0
 

Author Comment

by:cbugler
ID: 1464377
Thanks deighton.

0
 
LVL 18

Accepted Solution

by:
deighton earned 100 total points
ID: 1464378
Do you need to wrap your field names in [] ie [field name1]

I take it from your reply it have worked, so I've re-submitted as an answer for you to grade.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question