Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:01:45+00:00 2026-06-13T22:01:45+00:00

I had very much columns in a table A: Ex: temperature character varying(5), atmosphericpressure

  • 0

I had very much columns in a table A:
Ex:

temperature character varying(5),
  atmosphericpressure integer,
  humidity integer,
  perceptiondistinction1_cd character varying(6),
  perceptiondistinction2_cd character varying(6),
  timeprogress character varying(1),
  telegramreceived_datetime timestamp without time zone,
  order_datetime timestamp without time zone,
  outbreak_datetime timestamp without time zone,
  locationarrival_datetime timestamp without time zone,
  touch_datetime timestamp without time zone,
  insidecar_datetime timestamp without time zone,
  starting_datetime timestamp without time zone,
  hospitalarrival_datetime timestamp without time zone,
  hospitalaccommodate_datetime timestamp without time zone,
  pulling_datetime timestamp without time zone,
  return_datetime timestamp without time zone,
  spotdistance integer,
  spottohospital integer,
  returnstationdistance integer,
  receiveorderplace_cd character varying(6),
  changehospital1medicalsystem_cd character varying(6),
  requestorganization_cd character varying(6),
  changehospital1openincident_cd character varying(6),
  requestorganizationname character varying(120),
  doctorfellowpassenger character varying(1),
  changehospitalreason_cd character varying(6),
  nottransportation_cd character varying(6),
  coodinationdoctorcar character varying(6),
  entrydoctorcarhelicopterrequest_cd character varying(6),
  entryoperation_cd character varying(6),
  entrymultiplexcooperation_cd character varying(6),
  partymember1 integer,
  ownambulancecount integer,
  paramedicembarkation_cd character varying(6),
  paramedicclassication_cd character varying(6),
  doctoremvarkation_cd character varying(6),
  preventiongloves character varying(1),
  preventiongoggles character varying(1),
  preventionmask character varying(1),
  preventiongown character varying(1),
  spotbreathingset character varying(1),
  carryoxygen character varying(1),
  carryaspirator character varying(1),
  carrydefibrillator character varying(1),
  spotexternalwoundset character varying(1),
  spotcervicalspine character varying(1),
  carrybackboard character varying(1),
  spotstretcher character varying(1),
  carryother character varying(1),
  switchingdivision_cd character varying(6),
  switchingdelivery_cd character varying(6),
  reportsuddenly character varying(1),
  reportsnore character varying(1),
  reportgiddiness character varying(1),
  reportconsciousness character varying(1),
  reportconsciousness_cd character varying(6),
  reportbath character varying(1),
  reportconvulsion character varying(1),
  reporttoilet character varying(1),
  reportindeisposed character varying(1),
  reportmeal character varying(1),
  reportentrance character varying(1),
  reporthematemesis character varying(1),
  reportheratdisease character varying(1),
  reportheart character varying(1),
  reportbreath character varying(1),
  reportbreath_cd character varying(6),
  reportvomiting character varying(1),
  reportrespiratorydscomfort character varying(1),
  reportpainful character varying(1),
  reporthurt character varying(1),
  reportslurring character varying(1),
  reportsufferingheart character varying(1),
  reportchestpain character varying(1),
  reportstomachache character varying(1),
  reportheadache character varying(1),
  reportlumbago character varying(1),
  reportbackache character varying(1),
  reportconversation character varying(1),
  reportconversation_cd character varying(6),
  reportnotstand character varying(1),
  reporthypoglycemia character varying(1),
  reportnotexstinghouse character varying(1),
  reportdrink character varying(1),
  reporttemperature character varying(1),
  reportindooroutdoor character varying(1),
  reportindooroutdoor_cd character varying(6),
  reportasthma character varying(1),
  oralinstruction_cd character varying(6),
  instructionon_cd character varying(6),
  instructionoff_cd character varying(6),
  oralguidanceambulanceteam character varying(1),
  oralguidancedirector character varying(1),
  oralguidancedirector_cd character varying(6),
  victimrespiratorysubstance character varying(1),
  victimnoconsciousness character varying(1),
  victimnotmove character varying(1),
  victimchestpain character varying(1),
  victimdyspnea character varying(1),
  victimextenalhemorrhage character varying(1),
  victimother character varying(1),
  guidancecontetsobservation character varying(1),
  guidancecontetsposition character varying(1),
  guidancecontetsairway character varying(1),
  guidancecontetsremoval character varying(1)

With columns integer or timestamp if values is ” will been error when insert or update. Ex:

 $atmosphericpressure ='';
 $humidity ='';
 $order_datetime='';
 $outbreak_datetime='';
 $locationarrival_datetime ='';

Update A set atmosphericpressure ='$atmosphericpressure',humidity =  '$humidity',order_datetime='$order_datetime',outbreak_datetime='$outbreak_datetime',...

How set value of a variable is DBNull?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:01:46+00:00Added an answer on June 13, 2026 at 10:01 pm

    You could write a function to convert a string into a database expression:

    function toDB($string) {
      if ($string == '') {
        return 'null';
      } else {
        return "'$string'";
      }
    }
    

    and use it to create your query:

    $sql = "Update A set atmosphericpressure = {toDB($atmosphericpressure)},humidity =   {toDB($humidity)},order_datetime= {toDB($order_datetime)},...";
    

    Depending on the size of your project it would be better to abstract database access away by using an object relational mapper, some suggestions can be found in this question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had asked a question very much similar to this in the thread: https://stackoverflow.com/questions/11259474/store-the-numericals-in-char-array-into-an-integer-variable-in-vc
I'm very much a vb person, but have had to use this id number
I had a very difficult time with understanding the root cause of a problem
We had a very interesting problem with a Win Forms project. It's been resolved.
Ok, I asked about this very error earlier this week and had some very
We're starting to standardise on a Ruby-based testing framework, having had some very good
I'm very confused and am hoping someone might have had this problem and be
So I had to create this splash page in a very short amount of
This is very odd. I have never had this issue with ShowDialog in C#.
I have been frustrated that I have had to use the very buggy XCode

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.